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
This commit is contained in:
Reinier van der Leer
2024-04-24 13:56:35 +02:00
parent 5e89b8c6d1
commit 9543e5d6ac

View File

@@ -130,7 +130,7 @@ def configure_logging(
# Structured logging is used for cloud environments, # Structured logging is used for cloud environments,
# where logging to a file makes no sense. # 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.plain_console_output = True
config.log_file_format = None config.log_file_format = None