Skip to content

[Server] Apply the client-set log level in ClientGateway::log() - #571

Open
chr-hertel wants to merge 3 commits into
modelcontextprotocol:mainfrom
chr-hertel:fix-client-gateway-log-level
Open

chr-hertel wants to merge 3 commits into
modelcontextprotocol:mainfrom
chr-hertel:fix-client-gateway-log-level

Conversation

@chr-hertel

@chr-hertel chr-hertel commented Oct 10, 2026 •

Copy link
Copy Markdown
Member

After logging/setLevel(error), ClientGateway::log(LoggingLevel::Warning, ...) was still sent, while ClientLogger dropped the same message.

  • ClientGateway::log() reads Protocol::SESSION_LOGGING_LEVEL (default warning) and drops anything below it
  • ClientLogger just delegates - [BC Break] it takes only the ClientGateway now

Stacked on #566 (a963cf1 seeds SESSION_LOGGING_LEVEL from _meta on 2026-07-28) - merge after it, only the last commit belongs here.

Fixes chr-hertel#61

🤖 Generated with Claude Code

@chr-hertel chr-hertel added this to the 0.9.0 milestone Oct 10, 2026
@chr-hertel chr-hertel added bug Something isn't working Server Issues & PRs related to the Server component breaking change Breaking the Backwards Compatibility Promise on hold Blocked on external dependency (SEP, other PR, decision) labels Oct 10, 2026
@chr-hertel
chr-hertel force-pushed the fix-client-gateway-log-level branch from 9a7e378 to 6a7010e Compare October 10, 2026 02:10
@chr-hertel chr-hertel removed the on hold Blocked on external dependency (SEP, other PR, decision) label Oct 10, 2026
@chr-hertel
chr-hertel marked this pull request as ready for review October 10, 2026 02:10

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking change Breaking the Backwards Compatibility Promise bug Something isn't working Server Issues & PRs related to the Server component

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Server] ClientGateway::log() ignores logging/setLevel

1 participant