Skip to content

Fix log level validation error preventing server startup #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Mgabr90
Copy link

@Mgabr90 Mgabr90 commented Jun 3, 2025

  • Add import os statement
  • Set LOG_LEVEL environment variable to 'INFO' by default
  • Pass explicit log_level='INFO' parameter to FastMCP constructor

This fixes the ValueError: Invalid log level: info. Expected one of: ['DEBUG', 'INFO', 'WARNING', 'ERROR', 'CRITICAL'] that prevents the server from starting when FastMCP receives lowercase log levels.

- Add import os statement
- Set LOG_LEVEL environment variable to 'INFO' by default
- Pass explicit log_level='INFO' parameter to FastMCP constructor

This fixes the ValueError: Invalid log level: info. Expected one of: ['DEBUG', 'INFO', 'WARNING', 'ERROR', 'CRITICAL']
that prevents the server from starting when FastMCP receives lowercase log levels.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant