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
Description
This pull request introduces a new configuration section
bot:
in theconfig.yaml
file, allowing users to set the logging level for the bot. Thelog_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 acrossmain.py
,custom_bot.py
, andemulator.py
to ensure consistent logging behavior throughout the application.Changes
bot:
section withlog_level
parameter inconfig.yaml
main.py
to read and apply thelog_level
configurationcustom_bot.py
andemulator.py
to use the configured logging levelsys
in relevant files