From a2a0ce6dff34f635e9a822900b328953b4487e4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C4=9Bj=20Korvas?= Date: Fri, 9 Aug 2024 16:08:48 +0200 Subject: [PATCH] Don't call `logging.basicConfig` Logging needs be configured by application code, while Deduce is a library (to be imported, not to be run). Reminiscent of https://github.com/mnmelo/lazy_import/issues/8. --- deduce/deduce.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/deduce/deduce.py b/deduce/deduce.py index ce1dfab2..d7e3e832 100644 --- a/deduce/deduce.py +++ b/deduce/deduce.py @@ -5,7 +5,6 @@ import json import logging import os -import sys import warnings from pathlib import Path from typing import Any, Optional, Union @@ -38,9 +37,6 @@ _BASE_CONFIG_FILE = _BASE_PATH / "base_config.json" -logging.basicConfig(stream=sys.stdout, level=logging.DEBUG) - - class Deduce(dd.DocDeid): # pylint: disable=R0903 """ Main class for de-identification.