mirror of
https://github.com/GoodStartLabs/AI_Diplomacy.git
synced 2026-04-19 12:58:09 +00:00
feat: add llm_io to debug
This commit is contained in:
parent
40ee1cc857
commit
27990e5221
1 changed files with 2 additions and 0 deletions
|
|
@ -205,6 +205,8 @@ async def main():
|
|||
config.DEBUG = getattr(args, "debug", False)
|
||||
if config.DEBUG:
|
||||
logging.getLogger().setLevel(logging.DEBUG)
|
||||
# debug_log_llm_io() in ai_diplomacy.utils uses logger.debug(); ensure that logger is not capped at INFO
|
||||
logging.getLogger("utils").setLevel(logging.DEBUG)
|
||||
logger.info("Debug mode enabled: logger.debug() messages and every LLM input/output will be shown.")
|
||||
|
||||
logger.info(f"args.simple_prompts = {args.simple_prompts} (type: {type(args.simple_prompts)}), args.prompts_dir = {args.prompts_dir}")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue