From b90c15a70acb7bf6dff60ce785e18d1f6e936bcd Mon Sep 17 00:00:00 2001 From: Marvin Schenkel Date: Thu, 13 Apr 2023 18:55:57 +0200 Subject: [PATCH] Remove calls to root logger. (#205) --- dbldatagen/_version.py | 3 ++- dbldatagen/column_generation_spec.py | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dbldatagen/_version.py b/dbldatagen/_version.py index 3a19962e..915559db 100644 --- a/dbldatagen/_version.py +++ b/dbldatagen/_version.py @@ -29,7 +29,8 @@ def get_version(version): r = re.compile(r'(?P\d+)\.(?P\d+)\.(?P\d+){0,1}(?P\D*)(?P\d*)') major, minor, patch, release, build = r.match(version).groups() version_info = VersionInfo(major, minor, patch, release, build) - logging.info("Version : %s", version_info) + logger = logging.getLogger(__name__) + logger.info("Version : %s", version_info) return version_info diff --git a/dbldatagen/column_generation_spec.py b/dbldatagen/column_generation_spec.py index e6fd738d..25d7672b 100644 --- a/dbldatagen/column_generation_spec.py +++ b/dbldatagen/column_generation_spec.py @@ -89,7 +89,6 @@ class ColumnGenerationSpec(object): # restrict spurious messages from java gateway logging.getLogger("py4j").setLevel(logging.WARNING) - logging.basicConfig(format='%(levelname)s: %(message)s', level=logging.NOTSET) def __init__(self, name, colType=None, minValue=0, maxValue=None, step=1, prefix='', random=False, distribution=None, baseColumn=None, randomSeed=None, randomSeedMethod=None,