update logger config

This commit is contained in:
Wenjie Zhang 2025-03-03 22:06:28 +08:00
parent e998102eeb
commit f52d342afb
2 changed files with 1 additions and 2 deletions

View File

@ -57,7 +57,6 @@ def chat_post(
messages = history_manager.get_history_with_msg(modified_query, max_rounds=meta.get('history_round'))
history_manager.add_user(query) # 注意这里使用原始查询
logger.debug(f"Web history: {history_manager.messages}")
content = ""
reasoning_content = ""

View File

@ -7,7 +7,7 @@ DATETIME = datetime.now().strftime('%Y-%m-%d-%H%M%S')
# DATETIME = "debug" # 为了方便,调试的时候输出到 debug.log 文件
LOG_FILE = f'saves/log/project-{DATETIME}.log'
def setup_logger(name, level=logging.DEBUG, console=False):
def setup_logger(name, level=logging.DEBUG, console=True):
os.makedirs("saves/log", exist_ok=True)
"""Function to setup logger with the given name and log file."""