Skip to content

Commit

Permalink
ocrd_cli_wrap_processor: always do initLogging
Browse files Browse the repository at this point in the history
  • Loading branch information
bertsky authored Nov 20, 2024
1 parent c0f6116 commit 4492367
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/ocrd/decorators/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ def ocrd_cli_wrap_processor(
# ocrd_network params end #
**kwargs
):
# init logging handlers so no imported libs can preempt ours
initLogging()

if not sys.argv[1:]:
processorClass(None, show_help=True)
sys.exit(1)
Expand All @@ -67,8 +70,6 @@ def ocrd_cli_wrap_processor(
# Used for checking/starting network agents for the WebAPI architecture
check_and_run_network_agent(processorClass, subcommand, address, database, queue)

initLogging()

LOG = getLogger('ocrd.cli_wrap_processor')
assert kwargs['input_file_grp'] is not None
assert kwargs['output_file_grp'] is not None
Expand Down

0 comments on commit 4492367

Please sign in to comment.