Skip to content

Commit

Permalink
Don't call logging.basicConfig() in __init__.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jwodder committed Apr 11, 2023
1 parent 012895d commit b4f6e36
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions heudiconv/__init__.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,9 @@
# set logger handler
import logging
import os

from ._version import __version__
from .info import __packagename__

__all__ = ["__packagename__", "__version__"]

# Rudimentary logging support.
lgr = logging.getLogger(__name__)
logging.basicConfig(
format="%(levelname)s: %(message)s",
level=getattr(logging, os.environ.get("HEUDICONV_LOG_LEVEL", "INFO")),
)
lgr.debug("Starting the abomination") # just to "run-test" logging

0 comments on commit b4f6e36

Please sign in to comment.