Skip to content

Unintended global logging configuration introduced in v1.10.0 #1045

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.

Activity

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

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