From c1dbd24c97d13c77cacb4d9e867658629a761801 Mon Sep 17 00:00:00 2001 From: Floke Date: Sat, 3 Jan 2026 13:56:01 +0000 Subject: [PATCH] Fix: Redirect Python logs to stderr to prevent JSON corruption in stdout --- gtm_architect_orchestrator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtm_architect_orchestrator.py b/gtm_architect_orchestrator.py index 042b10e5..92777edc 100644 --- a/gtm_architect_orchestrator.py +++ b/gtm_architect_orchestrator.py @@ -30,7 +30,7 @@ logging.basicConfig( format='%(asctime)s - %(levelname)s - %(message)s', handlers=[ logging.FileHandler(log_file_path, mode='a', encoding='utf-8'), - logging.StreamHandler(sys.stdout) + logging.StreamHandler(sys.stderr) ] ) logging.info(f"GTM Architect Orchestrator v{ORCHESTRATOR_VERSION} ({run_timestamp}) starting...")