Fix: Redirect Python logs to stderr to prevent JSON corruption in stdout
This commit is contained in:
@@ -30,7 +30,7 @@ logging.basicConfig(
|
|||||||
format='%(asctime)s - %(levelname)s - %(message)s',
|
format='%(asctime)s - %(levelname)s - %(message)s',
|
||||||
handlers=[
|
handlers=[
|
||||||
logging.FileHandler(log_file_path, mode='a', encoding='utf-8'),
|
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...")
|
logging.info(f"GTM Architect Orchestrator v{ORCHESTRATOR_VERSION} ({run_timestamp}) starting...")
|
||||||
|
|||||||
Reference in New Issue
Block a user