From 9543e5d6acc1fddbbbcd226db18fa9e920f46144 Mon Sep 17 00:00:00 2001 From: Reinier van der Leer Date: Wed, 24 Apr 2024 13:56:35 +0200 Subject: fix(agent): Fix crash when `LOG_FORMAT=structured_google_cloud` Another piece of fallout from cf00c33 - fix(agent): Fix debug logging & amend configure_logging for easier use --- autogpts/autogpt/autogpt/logs/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autogpts/autogpt/autogpt/logs/config.py b/autogpts/autogpt/autogpt/logs/config.py index 007aeb3f1..3b6860e8f 100644 --- a/autogpts/autogpt/autogpt/logs/config.py +++ b/autogpts/autogpt/autogpt/logs/config.py @@ -130,7 +130,7 @@ def configure_logging( # Structured logging is used for cloud environments, # where logging to a file makes no sense. - if log_format == LogFormatName.STRUCTURED: + if config.log_format == LogFormatName.STRUCTURED: config.plain_console_output = True config.log_file_format = None -- cgit v1.2.3