Skip to content
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

Add Configurable Logging Level to Bot Configuration #162

Merged
merged 5 commits into from
Jun 20, 2024
Merged

Add Configurable Logging Level to Bot Configuration #162

merged 5 commits into from
Jun 20, 2024

Conversation

Leviaria
Copy link
Collaborator

Description

This pull request introduces a new configuration section bot: in the config.yaml file, allowing users to set the logging level for the bot. The log_level parameter can be configured to control the verbosity of log messages, with options such as "DEBUG", "INFO", "WARNING", "ERROR", and "CRITICAL". The logging configuration has been implemented across main.py, custom_bot.py, and emulator.py to ensure consistent logging behavior throughout the application.

Changes

  • Added bot: section with log_level parameter in config.yaml
  • Updated main.py to read and apply the log_level configuration
  • Modified custom_bot.py and emulator.py to use the configured logging level
  • Included appropriate import statements for sys in relevant files

@Leviaria Leviaria merged commit 09de14f into Pbatch:main Jun 20, 2024
0 of 2 checks passed
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