Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ocrd_utils.initLogging: also add handler to root logger #1288

Merged
merged 8 commits into from
Nov 18, 2024
Prev Previous commit
Next Next commit
logging: increase default root (not ocrd) level from INFO to WARNING
  • Loading branch information
bertsky committed Nov 7, 2024
commit 7e8705e30ad8ad364e08cb5b8847103adc2a4fbc
1 change: 1 addition & 0 deletions src/ocrd_utils/logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
]

LOGGING_DEFAULTS = {
'': logging.WARNING,
'ocrd': logging.INFO,
'ocrd_network': logging.INFO,
# 'ocrd.resolver': logging.INFO,
Expand Down
2 changes: 1 addition & 1 deletion src/ocrd_utils/ocrd_logging.conf
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ keys=defaultFormatter,detailedFormatter
# default logger "root" using consoleHandler
#
[logger_root]
level=INFO
level=WARNING
handlers=consoleHandler,fileHandler


Expand Down