We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug I cannot set the LOG_LEVEL setting and mmpy_bot will not initiate. I have tried 2.2.0 and the latest master branch.
How To Reproduce This is the code I used to create the bot
def run_mattermost_bot(app, plugins): """Initialize and run the Mattermost bot with specified plugins.""" bot = Bot( settings=Settings( MATTERMOST_URL=app.config.get("MATTERMOST_API_URL"), MATTERMOST_PORT=443, BOT_TOKEN=app.config.get("MATTERMOST_BOT_TOKEN"), BOT_TEAM=app.config.get("MATTERMOST_TEAM"), SSL_VERIFY=True, LOG_LEVEL=logging.INFO, ), plugins=plugins, ) bot.run()
If I want to workaround this, I can add the following check inside mmpy_bot/settings.py (line ~ 124)
elif f.type in [int, float, str]: # type: ignore if f.name == "LOG_LEVEL": value = logging.getLevelName(value) value = f.type(value)
Expected behavior I expect the bot to boot up/initiate
Operating Environment (please complete the following information):
Additional context This is a flask app.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
I cannot set the LOG_LEVEL setting and mmpy_bot will not initiate. I have tried 2.2.0 and the latest master branch.
How To Reproduce
This is the code I used to create the bot
If I want to workaround this, I can add the following check inside mmpy_bot/settings.py (line ~ 124)
Expected behavior
I expect the bot to boot up/initiate
Operating Environment (please complete the following information):
Additional context
This is a flask app.
The text was updated successfully, but these errors were encountered: