Skip to content

refactor: downgrade unhandled notification logging from error to warn #457

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

tzolov
Copy link
Contributor

@tzolov tzolov commented Aug 6, 2025

  • Change logger.error() to logger.warn() for unhandled notification methods
  • Log full notification object instead of just method name for better context
  • Affects McpClientSession, McpServerSession, and McpStreamableServerSession

- Change logger.error() to logger.warn() for unhandled notification methods
- Log full notification object instead of just method name for better context
- Affects McpClientSession, McpServerSession, and McpStreamableServerSession

Signed-off-by: Christian Tzolov <christian.tzolov@broadcom.com>
@tzolov tzolov added this to the 0.12.0 milestone Aug 6, 2025
@tzolov tzolov merged commit 110a8d1 into modelcontextprotocol:main Aug 6, 2025
1 check failed
@tzolov
Copy link
Contributor Author

tzolov commented Aug 6, 2025

back-ported to 0.11.x

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