Skip to content

Commit 2421641

Browse files
authored
Merge pull request #373 from DigitalSlideArchive/less-root-logging
Reduce undesired root logging.
2 parents 7b7e456 + 2bae910 commit 2421641

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

histomicsui/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
#############################################################################
1616

1717
import json
18+
import logging
1819
import os
1920
import re
2021
from functools import wraps
@@ -55,6 +56,9 @@
5556
# package is not installed
5657
pass
5758

59+
# There are other packages that we add to the root log handler; stop that
60+
# unless specifically desired.
61+
logging.root.addHandler(logging.NullHandler())
5862

5963
_template = os.path.join(
6064
os.path.dirname(__file__),

0 commit comments

Comments
 (0)