Skip to content

Commit

Permalink
Remove calls to root logger. (#205)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarvinSchenkel authored Apr 13, 2023
1 parent 615c56b commit b90c15a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 2 additions & 1 deletion dbldatagen/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ def get_version(version):
r = re.compile(r'(?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+){0,1}(?P<release>\D*)(?P<build>\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


Expand Down
1 change: 0 additions & 1 deletion dbldatagen/column_generation_spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit b90c15a

Please sign in to comment.