aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Reinier van der Leer <pwuts@agpt.co> 2024-04-24 13:56:35 +0200
committerGravatar Reinier van der Leer <pwuts@agpt.co> 2024-04-24 13:56:35 +0200
commit9543e5d6acc1fddbbbcd226db18fa9e920f46144 (patch)
treeb35f6d96efc3757daff7a13506c89e67004ab8ad
parentAdd all the new component docs to the site and do a tidy up of docs (#7098) (diff)
downloadAuto-GPT-9543e5d6acc1fddbbbcd226db18fa9e920f46144.tar.gz
Auto-GPT-9543e5d6acc1fddbbbcd226db18fa9e920f46144.tar.bz2
Auto-GPT-9543e5d6acc1fddbbbcd226db18fa9e920f46144.zip
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
-rw-r--r--autogpts/autogpt/autogpt/logs/config.py2
1 files changed, 1 insertions, 1 deletions
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