fix: task log level parsing
Fix a change to our task's python logging format that broke parsing log levels.
@@ -11,6 +11,7 @@ def set_logger(debug_enabled: bool) -> None:
handler = logging.StreamHandler(sys.stdout)
handler.setLevel(logging.DEBUG if debug_enabled else logging.INFO)
- formatter = logging.Formatter("%(levelname)s [%(process)s]: %(name)s: %(message)s")
+ # If this format is changed, we must update fluentbit, which attempts to parse these logs.
+ formatter = logging.Formatter("%(levelname)s: [%(process)s] %(name)s: %(message)s")
handler.setFormatter(formatter)
root.addHandler(handler)
