update logger config
This commit is contained in:
parent
e998102eeb
commit
f52d342afb
@ -57,7 +57,6 @@ def chat_post(
|
|||||||
|
|
||||||
messages = history_manager.get_history_with_msg(modified_query, max_rounds=meta.get('history_round'))
|
messages = history_manager.get_history_with_msg(modified_query, max_rounds=meta.get('history_round'))
|
||||||
history_manager.add_user(query) # 注意这里使用原始查询
|
history_manager.add_user(query) # 注意这里使用原始查询
|
||||||
logger.debug(f"Web history: {history_manager.messages}")
|
|
||||||
|
|
||||||
content = ""
|
content = ""
|
||||||
reasoning_content = ""
|
reasoning_content = ""
|
||||||
|
|||||||
@ -7,7 +7,7 @@ DATETIME = datetime.now().strftime('%Y-%m-%d-%H%M%S')
|
|||||||
# DATETIME = "debug" # 为了方便,调试的时候输出到 debug.log 文件
|
# DATETIME = "debug" # 为了方便,调试的时候输出到 debug.log 文件
|
||||||
LOG_FILE = f'saves/log/project-{DATETIME}.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)
|
os.makedirs("saves/log", exist_ok=True)
|
||||||
|
|
||||||
"""Function to setup logger with the given name and log file."""
|
"""Function to setup logger with the given name and log file."""
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user