Debug package
Description
Debug utilities
log_manager
Handles the logging of events
- module.debug.log_manager.error_handler(update, context)
Logs the error and notifies the admins. :type update:
Update
:param update: update event :type context:CallbackContext
:param context: context passed by the handler
- module.debug.log_manager.log_error(header, error)
Logs an error :type header:
str
:param header: message to put before the error :type error:Exception
:param error: the error that has occurred
- module.debug.log_manager.log_message(update, context)
Logs the message that caused the update :type update:
Update
:param update: update event :type context:CallbackContext
:param context: context passed by the handler
- module.debug.log_manager.notify_error_admin(context, traceback_str)
Sends a telegram message to notify the admins. :type context:
CallbackContext
:param context: context passed by the handler