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-26 19:33:25 +0200
commit0ecb2331013cbc0cc2485edf319bf3a1568a0bb2 (patch)
treeb061390fc52f36d242d9bbed94e3d661729aea59
parentfix(agent/setup): Fix installing ONNXRuntime on macOS on some architectures (... (diff)
downloadAuto-GPT-0ecb2331013cbc0cc2485edf319bf3a1568a0bb2.tar.gz
Auto-GPT-0ecb2331013cbc0cc2485edf319bf3a1568a0bb2.tar.bz2
Auto-GPT-0ecb2331013cbc0cc2485edf319bf3a1568a0bb2.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