Skip to content

Commit 4c5e5b9

Browse files
committed
Low level MCP server now uses log level set by FastMCP(name="My MCP Server", debug=True, log_level='DEBUG')
1 parent dcc68ce commit 4c5e5b9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/mcp/server/fastmcp/server.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,9 @@ def __init__( # noqa: PLR0913
169169
transport_security=transport_security,
170170
)
171171

172+
# Configure logging
173+
configure_logging(self.settings.log_level)
174+
172175
self._mcp_server = MCPServer(
173176
name=name or "FastMCP",
174177
instructions=instructions,
@@ -204,8 +207,6 @@ def __init__( # noqa: PLR0913
204207
# Set up MCP protocol handlers
205208
self._setup_handlers()
206209

207-
# Configure logging
208-
configure_logging(self.settings.log_level)
209210

210211
@property
211212
def name(self) -> str:

0 commit comments

Comments
 (0)