Log exceptions instead of printing stack traces #544
All Vouch review confidence checks passed
Residual risk 0.14 = Change Risk (0.35) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.35 · 172 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.308
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #544"
general
weight: 0.35
tonygermano
What
Routes bare
printStackTrace()calls through the class's log4j2 logger: 39 sites in the client and 10 in the server. Classes without a logger get one in the module's existing style.Why
Stack traces printed to stderr bypass the log configuration and appenders, and they have no context message.
Reviewer notes
- CLI output in
command/- the generator build tools
- launcher and bootstrap code that runs before logging is configured, including
LoggerWrapper's own fallback- one unused debug helper
client/src/main/java/org/are untouched.error, because the client and serverlog4j2.propertiesboth set the root logger to ERROR.Mirth.javagets its logger inline, so log4j isn't initialised before the Java-version check inmain().ChannelServletlogs the unparseablestartEditquery parameter escaped and quoted, to avoid log forging../gradlew :server:compileJava :client:compileJava,ChannelServletTest,ER7SerializerTest,IteratorUtilTestandUserEditPanelTest. Most converted sites are Swing listeners or error branches with no test coverage.🤖 Generated with Claude Code