fix: harden logging infrastructure to prevent duplicate logs

- Implemented manual sys.stdout.flush() in log_event.
- Enabled flush=True for all print statements in the logger.
- Set PYTHONUNBUFFERED: '1' in the V2 Builder workflow environment.
- These changes ensure immediate log delivery and reduce GHA agent stuttering.
This commit is contained in:
Nubenetes Bot
2026-05-21 16:28:46 +02:00
parent 3b58f48883
commit 856b2180b3
2 changed files with 7 additions and 2 deletions

View File

@@ -74,6 +74,7 @@ jobs:
FORCE_EVAL: ${{ github.event.inputs.force_reevaluate || 'false' }}
ENRICH_METADATA: ${{ github.event.inputs.enrich_metadata || 'false' }}
PYTHONPATH: .
PYTHONUNBUFFERED: "1"
run: |
python -u src/v2_optimizer.py
if [ -f v2_safety_report.md ]; then