Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2025 04:10 PM
What solved this problem for me is to remove the root logger configuration from the logging config and create another one within the loggers section. See below.
{
'version': 1,
'disable_existing_loggers': False,
'formatters': {
'simple': {
'format': '%(message)s'
},
}
'handlers': {
'console': {
'class': 'logging.StreamHandler',
'level': 'INFO',
'formatter': 'simple',
'stream': 'ext://sys.stdout'
},
},
'loggers': {
#### use this instead in your app ####
'my': {
'level': 'INFO',
'handlers': ['console'],
'propagate': False,
}
},
#### remove this ####
'root': {
'level': 'DEBUG',
'handlers': ['console']
},
}