From bf2a842b2a7323a259ff31c48fbc5cdb28247931 Mon Sep 17 00:00:00 2001 From: Nina Shvetsova Date: Wed, 11 Mar 2026 10:50:33 +0000 Subject: [PATCH] Refactor: Output maxlogging to both logger and stdout Modify the log function to write to both the standard logger and stdout. This ensures visibility in environments where logger output might not be readily accessible. Co-authored-by: martinarroyo --- src/maxdiffusion/max_logging.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/maxdiffusion/max_logging.py b/src/maxdiffusion/max_logging.py index 2edb43f42..a3b3748d3 100644 --- a/src/maxdiffusion/max_logging.py +++ b/src/maxdiffusion/max_logging.py @@ -16,6 +16,11 @@ """Stub for logging utilities. Right now just meant to avoid raw prints""" +import logging + +logger = logging.getLogger(__name__) + def log(user_str): + logger.info(user_str) print(user_str, flush=True)