Fix: Redirect Python logs to stderr to prevent JSON corruption in stdout

This commit is contained in:
2026-01-03 13:56:01 +00:00
parent f3438c5a38
commit c1dbd24c97

View File

@@ -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...")