79213820

Date: 2024-11-22 06:10:28
Score: 1
Natty:
Report link

Looking at the docstring of the hasHandler method suggests it searches up the logger's parents until a handler is found or it reaches top level. If you wish hasHandlers to only reflects presense of handlers at your logger's level, then setting logger.propagte = False should suffice.

enter image description here

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Chester Cheng