From b4f6e369b0f2bb547222602c5c22dad74a9f5d28 Mon Sep 17 00:00:00 2001 From: "John T. Wodder II" Date: Mon, 10 Apr 2023 09:15:14 -0400 Subject: [PATCH] Don't call `logging.basicConfig()` in `__init__.py` --- heudiconv/__init__.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/heudiconv/__init__.py b/heudiconv/__init__.py index 4015e511..83b70495 100644 --- a/heudiconv/__init__.py +++ b/heudiconv/__init__.py @@ -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