Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Unintended global logging configuration introduced in v1.10.0 #1045

Closed
@kiarina

Description

@kiarina

In version v1.10.0, a global logging configuration was introduced in the following file:

https://github.com/modelcontextprotocol/python-sdk/blob/main/src/mcp/client/session.py#L18

logging.basicConfig(level=logging.INFO)

As this is executed at the module level, it affects the global logging configuration of any application that imports this module. This can cause unexpected logging behavior and conflicts, especially when applications or other libraries have their own logging configurations.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions