Skip to content

Reduce logging levels#985

Merged
chemicL merged 3 commits into
mainfrom
reduce-logging
May 27, 2026
Merged

Reduce logging levels#985
chemicL merged 3 commits into
mainfrom
reduce-logging

Conversation

@chemicL
Copy link
Copy Markdown
Member

@chemicL chemicL commented May 27, 2026

The logging is sometimes too verbose and uses inappropriate level. With this
change there should be less disturbing logs and less duplication.

Notable changes:

  • LifeCycleInitializer#handleException - duplicated log, already handled in
    transports that use the initializer.
  • McpClientSession#sendRequest - an MCP protocol level error in JSON-RPC is
    not really a reason for ERROR level log. Using INFO with more details.
  • DefaultJsonSchemaValidator - ERROR logs in validate are always logged by
    the users of this method. validateSchema surfaces as
    IllegalArgumentException and can be logged at higher levels by the user.

chemicL added 3 commits May 27, 2026 10:56
The logging is sometimes too verbose and uses inappropriate level. With this
change there should be less disturbing logs and less duplication.

Notable changes:

* `LifeCycleInitializer#handleException` - duplicated log, already handled in
  transports that use the initializer.
* `McpClientSession#sendRequest` - an MCP protocol level error in JSON-RPC is
  not really a reason for ERROR level log. Using INFO with more details.
* `DefaultJsonSchemaValidator` - ERROR logs in `validate` are always logged by
  the users of this method. `validateSchema` surfaces as
  `IllegalArgumentException` and can be logged at higher levels by the user.

Signed-off-by: Dariusz Jędrzejczyk <2554306+chemicL@users.noreply.github.com>
Signed-off-by: Dariusz Jędrzejczyk <2554306+chemicL@users.noreply.github.com>
Signed-off-by: Dariusz Jędrzejczyk <2554306+chemicL@users.noreply.github.com>
@chemicL chemicL added this to the 2.0.0-RC1 milestone May 27, 2026
@chemicL chemicL merged commit c8ab341 into main May 27, 2026
24 checks passed
@chemicL chemicL deleted the reduce-logging branch May 27, 2026 09:50
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