From 48e74275a6f6927275cafcc0e4deef60bd4b8b91 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. --- src/maxdiffusion/max_logging.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/maxdiffusion/max_logging.py b/src/maxdiffusion/max_logging.py index 2edb43f42..4a81817c4 100644 --- a/src/maxdiffusion/max_logging.py +++ b/src/maxdiffusion/max_logging.py @@ -16,6 +16,10 @@ """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)