You probably need to change the level of the logging module to display debugging and informational messages in the console.
logger.setLevel(logging.DEBUG)
If you do not want to display debug messages, follow these steps:
logger.setLevel(logging.INFO)
And just a quick few. The levels below are in order, so if you install one of them, it will display all messages of types below the set level and there will be no messages above the set level.
logging.DEBUG logging.INFO logging.WARNING logging.ERROR logging.CRITICAL
source share