feat: jieba日志调整为warning级别
This commit is contained in:
parent
a599916d31
commit
ec47c230a9
|
@ -1,5 +1,6 @@
|
||||||
import asyncio
|
import asyncio
|
||||||
import json
|
import json
|
||||||
|
import logging
|
||||||
from collections import Counter
|
from collections import Counter
|
||||||
|
|
||||||
import aiofiles
|
import aiofiles
|
||||||
|
@ -14,6 +15,7 @@ plot_lock = asyncio.Lock()
|
||||||
|
|
||||||
class AsyncWordCloudGenerator:
|
class AsyncWordCloudGenerator:
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
|
logging.getLogger('jieba').setLevel(logging.WARNING)
|
||||||
self.stop_words_file = config.STOP_WORDS_FILE
|
self.stop_words_file = config.STOP_WORDS_FILE
|
||||||
self.lock = asyncio.Lock()
|
self.lock = asyncio.Lock()
|
||||||
self.stop_words = self.load_stop_words()
|
self.stop_words = self.load_stop_words()
|
||||||
|
|
Loading…
Reference in New Issue