From 1f3db55ee89c13b84c609d55e37deddd9e4321a3 Mon Sep 17 00:00:00 2001 From: Reinier van der Leer Date: Fri, 25 Aug 2023 02:13:52 +0200 Subject: [PATCH] Improve command result printing to console --- autogpt/app/main.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/autogpt/app/main.py b/autogpt/app/main.py index 10fd8fd8..036c7cd7 100644 --- a/autogpt/app/main.py +++ b/autogpt/app/main.py @@ -338,10 +338,7 @@ def run_interaction_loop( result = agent.execute(command_name, command_args, user_input) if result.status == "success": - logger.info( - str(result.results), - extra={"title": "SYSTEM:", "title_color": Fore.YELLOW}, - ) + logger.info(result, extra={"title": "SYSTEM:", "title_color": Fore.YELLOW}) elif result.status == "error": logger.warn( f"Command {command_name} returned an error: {result.error or result.reason}"