Skip to content

Commit

Permalink
Merge pull request #1121 from OCR-D/fix-bashlib-log
Browse files Browse the repository at this point in the history
Fix loglevel type error when starting bashlib worker
  • Loading branch information
kba authored Oct 19, 2023
2 parents caa7ac3 + 4904b34 commit 421b06a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ocrd/ocrd/processor/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
from functools import lru_cache
import json
import inspect
from subprocess import run, PIPE
from typing import List, Type
from subprocess import run
from typing import List

from click import wrap_text
from ocrd.workspace import Workspace
from ocrd_utils import freeze_args, getLogger, pushd_popd, config, setOverrideLogLevel
from ocrd_utils import freeze_args, getLogger, config, setOverrideLogLevel, getLevelName


__all__ = [
Expand Down Expand Up @@ -198,7 +198,7 @@ def run_cli(
args = [executable, '--working-dir', workspace.directory]
args += ['--mets', mets_url]
if log_level:
args += ['--log-level', log_level]
args += ['--log-level', log_level if isinstance(log_level, str) else getLevelName(log_level)]
if page_id:
args += ['--page-id', page_id]
if input_file_grp:
Expand Down

0 comments on commit 421b06a

Please sign in to comment.