Skip to content

Running FastMCP() overwrites global logging configuration #909

Closed as duplicate

Description

@mithaler

Describe the bug
Running FastMCP() calls configure_logging, which overwrites the global logging config. This makes it difficult to integrate it into other frameworks built on FastAPI via mounting, especially in complex apps that need to set up their logs in a specific way.

To Reproduce
Follow the example mounting a FastMCP instance in an existing FastAPI server on the top-level README, in an app with any kind of existing logging config.

Expected behavior
FastMCP should not do this, or at the very least it should make it possible to disable or overwrite this behavior.

Activity

  1. olejorgenb commented on Jun 18, 2025

    @olejorgenb

    Duplicate of #420

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