Skip to content

Commit

Permalink
feat: jieba日志调整为warning级别
Browse files Browse the repository at this point in the history
  • Loading branch information
NanmiCoder committed Aug 9, 2024
1 parent a599916 commit ec47c23
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tools/words.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import asyncio
import json
import logging
from collections import Counter

import aiofiles
Expand All @@ -14,6 +15,7 @@

class AsyncWordCloudGenerator:
def __init__(self):
logging.getLogger('jieba').setLevel(logging.WARNING)
self.stop_words_file = config.STOP_WORDS_FILE
self.lock = asyncio.Lock()
self.stop_words = self.load_stop_words()
Expand Down

0 comments on commit ec47c23

Please sign in to comment.