Skip to main content
Glama
logging.py821 B
""" Logging configuration for MCP Flight Search. """ import logging from rich.logging import RichHandler def setup_logging(): """Configure and set up logging for the application.""" logging.basicConfig( level=logging.DEBUG, format="| %(levelname)-8s | %(name)s | %(message)s", datefmt="[%Y-%m-%d %H:%M:%S]", handlers=[RichHandler(rich_tracebacks=True)], force=True # This is the fix that overrides uvicorn & third-party loggers ) logger = logging.getLogger("flight_search") logging.getLogger("uvicorn.access").setLevel(logging.INFO) logging.getLogger("uvicorn.error").setLevel(logging.INFO) logging.getLogger("httpx").setLevel(logging.WARNING) return logger # Create the logger instance for import by other modules logger = setup_logging()

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/arjunprabhulal/mcp-flight-search'

If you have feedback or need assistance with the MCP directory API, please join our Discord server