Skip to content

Commit

Permalink
revert: 去除WechatAPI的日志,因为消息太多了导致日志过大。
Browse files Browse the repository at this point in the history
  • Loading branch information
HenryXiaoYang committed Feb 4, 2025
1 parent 3436f98 commit a92a8a7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
2 changes: 1 addition & 1 deletion WechatAPI/Server/WechatAPIServer.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def process_stdout_to_log(self):
line = self.process.stdout.readline()
if not line:
break
logger.log("API", line.decode("utf-8").strip())
# logger.log("API", line.decode("utf-8").strip())

# 检查进程是否异常退出
return_code = self.process.poll()
Expand Down
10 changes: 0 additions & 10 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,16 +134,6 @@ def restart_program():
diagnose=True,
level="DEBUG",
)
logger.add(
"logs/WechatAPI_{time}.log",
format="{time:YYYY-MM-DD HH:mm:ss} | {level} | {message}",
encoding="utf-8",
enqueue=True,
retention="2 weeks",
rotation="00:01",
filter=is_api_message,
level="API",
)
logger.add(
sys.stdout,
colorize=True,
Expand Down

0 comments on commit a92a8a7

Please sign in to comment.