We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents eb8211d + 8f755c0 commit 81e9957Copy full SHA for 81e9957
json_logging/__init__.py
@@ -81,7 +81,7 @@ def config_root_logger():
81
"""
82
global _default_formatter
83
84
- if len(logging.root.handlers) > 0:
+ if not logging.root.handlers:
85
_logger.error(
86
"No logging handlers found for root logger. Please made sure that you call this after you called "
87
"logging.basicConfig() or logging.getLogger('root')")
0 commit comments