Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/ocrd/decorators/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ def ocrd_cli_wrap_processor(
# ocrd_network params end #
**kwargs
):
# init logging handlers so no imported libs can preempt ours
initLogging()

# FIXME: remove workspace arg entirely
processor = processorClass(None)
if not sys.argv[1:]:
Expand Down Expand Up @@ -89,8 +92,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)

# from here: single-run processing context
initLogging()
if 'parameter' in kwargs:
# Disambiguate parameter file/literal, and resolve file
def resolve(name):
Expand Down