Guard LogInterceptor flush against OSError#13931
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThis PR makes 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
403c7c5 to
0039804
Compare
0039804 to
276bfe0
Compare
Summary
OSErrorraised by the wrapped stdout/stderr stream duringLogInterceptor.flush()This only suppresses errors from the underlying stream flush. Callback exceptions still propagate as before.
Fixes #13906
Tests
python3 -m pytest tests-unit/app_test/logger_test.pypython3 -m py_compile app/logger.py