We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1bed85b commit 8fdeca9Copy full SHA for 8fdeca9
src/common/logging_utils.py
@@ -46,7 +46,10 @@ def configure_logging() -> int:
46
if isinstance(cur, int) and cur != logging.NOTSET and cur > level:
47
h.setLevel(level)
48
except Exception:
49
- pass
+ # Log at DEBUG to avoid noisy stderr while still providing diagnostics.
50
+ logging.getLogger(__name__).debug(
51
+ "Failed to adjust handler level for handler %r", h, exc_info=True
52
+ )
53
54
# Only add our own stderr handler if there are NO handlers at all.
55
# Many hosts (pytest, uv, VS Code) install a console handler already.
0 commit comments