Skip to content

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.

fix(agent): Fix crash when `LOG_FORMAT=structured_google_cloud`

Reinier van der Leer9543e5d6acc1
diff --git a/autogpts/autogpt/autogpt/logs/config.py b/autogpts/autogpt/autogpt/logs/config.py
index 007aeb3f16..3b6860e8fb 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