From 066d253f11dc0f235e14c9371633933c54036022 Mon Sep 17 00:00:00 2001 From: Jeremiah Lowin <153965+jlowin@users.noreply.github.com> Date: Sat, 30 Nov 2024 09:44:51 -0500 Subject: [PATCH] Make log levels strings --- src/fastmcp/server.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/fastmcp/server.py b/src/fastmcp/server.py index 54cf5df..1e56962 100644 --- a/src/fastmcp/server.py +++ b/src/fastmcp/server.py @@ -3,7 +3,6 @@ import asyncio import functools import json -import logging from typing import Any, Callable, Optional, Sequence, Union, Literal import pydantic.json @@ -38,9 +37,7 @@ class Settings(BaseSettings): # Server settings debug: bool = False - log_level: Literal[ - logging.DEBUG, logging.INFO, logging.WARNING, logging.ERROR, logging.CRITICAL - ] = logging.INFO + log_level: Literal["DEBUG", "INFO", "WARNING", "ERROR", "CRITICAL"] = "INFO" # HTTP settings host: str = "0.0.0.0"