Skip to content

Commit

Permalink
correct logging
Browse files Browse the repository at this point in the history
  • Loading branch information
hnesk committed May 15, 2022
1 parent fa4def5 commit 00203a5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ocrd_browser/model/document.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
from ocrd_models.constants import NAMESPACES as NS
from ocrd_utils import pushd_popd
from ocrd_utils.constants import MIME_TO_EXT, MIMETYPE_PAGE
from ocrd_utils import getLogger

from logging import getLogger
from typing import Optional, Tuple, List, Set, Union, cast, Callable, Any, Dict
from collections import OrderedDict
from pathlib import Path
Expand Down
4 changes: 3 additions & 1 deletion tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,11 @@
in your Gtk using test file in the first line
"""
# pylint: disable=unused-import
import logging
from unittest import TestCase # noqa F401
import gi
from pathlib import Path
from ocrd_utils import initLogging
from ocrd_utils import initLogging, setOverrideLogLevel

gi.require_version('Gtk', '3.0')
gi.require_version('GdkPixbuf', '2.0')
Expand All @@ -27,6 +28,7 @@
gi.require_version('WebKit2', '4.0')

initLogging()
setOverrideLogLevel(logging.ERROR, True)

TEST_BASE_PATH = (Path(__file__).parent).absolute()
ASSETS_PATH = (TEST_BASE_PATH / 'assets').absolute()
Expand Down

0 comments on commit 00203a5

Please sign in to comment.