Skip to content

Commit

Permalink
Make log levels strings
Browse files Browse the repository at this point in the history
  • Loading branch information
jlowin committed Nov 30, 2024
1 parent 4585dc5 commit 066d253
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/fastmcp/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import asyncio
import functools
import json
import logging
from typing import Any, Callable, Optional, Sequence, Union, Literal

import pydantic.json
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 066d253

Please sign in to comment.