Skip to content

Commit

Permalink
disableLogging: clearer comment
Browse files Browse the repository at this point in the history
Co-authored-by: Konstantin Baierer <[email protected]>
  • Loading branch information
bertsky and kba authored Sep 30, 2024
1 parent 19ce7d9 commit 606915b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ocrd_utils/logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ def disableLogging(silent=not config.OCRD_LOGGING_DEBUG):
_initialized_flag = False
# logging.basicConfig(level=logging.CRITICAL)
# logging.disable(logging.ERROR)
# remove all handlers for the ocrd logger
# remove all handlers for the 'ocrd.' and root logger
for logger_name in ROOT_OCRD_LOGGERS + ['']:
for handler in logging.getLogger(logger_name).handlers[:]:
logging.getLogger(logger_name).removeHandler(handler)
Expand Down

0 comments on commit 606915b

Please sign in to comment.