Skip to content

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

Merged
tzolov merged 1 commit intomodelcontextprotocol:mainfrom
tzolov:missing-notificaiton-handler-logging-warning
Aug 6, 2025
Merged

refactor: downgrade unhandled notification logging from error to warn#457
tzolov merged 1 commit intomodelcontextprotocol:mainfrom
tzolov:missing-notificaiton-handler-logging-warning

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