Skip to content

fix(java): suppress shaded gRPC DEBUG noise on startup#366

Draft
nicklasl wants to merge 1 commit intomainfrom
nicklasl/java/shading
Draft

fix(java): suppress shaded gRPC DEBUG noise on startup#366
nicklasl wants to merge 1 commit intomainfrom
nicklasl/java/shading

Conversation

@nicklasl
Copy link
Copy Markdown
Member

Summary

  • Shaded gRPC internally logs ClassNotFoundException stack traces at DEBUG level when probing for optional classes (ContextStorageOverride, JndiResourceResolverFactory). These are expected and handled gracefully, but alarming to users with DEBUG logging enabled.
  • Sets the JUL log level to INFO for the com.spotify.confidence.sdk.shaded.io.grpc logger hierarchy, preventing this noise from reaching the app's logging pipeline via the JUL-to-SLF4J bridge.
  • Only affects the shaded logger tree — the application's own io.grpc loggers are not impacted.

Test plan

  • make test passes (exit code 0)
  • Verify in a Spring Boot app with DEBUG logging that the ClassNotFoundException stack traces no longer appear

🤖 Generated with Claude Code

Shaded gRPC logs ClassNotFoundException stack traces at DEBUG level
when probing for optional classes (ContextStorageOverride,
JndiResourceResolverFactory). Set JUL level to INFO for the shaded
logger hierarchy to prevent these from reaching the app's logging
pipeline.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant