79300602

Date: 2024-12-22 06:57:32
Score: 2
Natty:
Report link

I don't see logging.getLevelNamesMapping().keys() in Python 3.10.12. Instead, create your own dictionary for the same result:

log_levels = {"none":log.NOTSET, "info":log.INFO, "error":log.ERROR, "warning":log.WARNING, "critical":log.CRITICAL, "debug":log.DEBUG }

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: JMirabile