From 7bc15369cd6a84b8829cf33317b7084514a2fbc9 Mon Sep 17 00:00:00 2001 From: Ayush Dattagupta Date: Tue, 23 Apr 2024 11:29:20 -0700 Subject: [PATCH] Update logging to not change root logger Signed-off-by: Ayush Dattagupta --- nemo_curator/utils/import_utils.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/nemo_curator/utils/import_utils.py b/nemo_curator/utils/import_utils.py index 8b2308e9b..ea78e4597 100644 --- a/nemo_curator/utils/import_utils.py +++ b/nemo_curator/utils/import_utils.py @@ -23,8 +23,9 @@ from nemo_curator.utils.gpu_utils import GPU_INSTALL_STRING -logging.basicConfig(level=logging.INFO) -logger = logging.getLogger("import_logger") +logger = logging.getLogger(__name__) +logger.setLevel(logging.INFO) +logger.addHandler(logging.StreamHandler()) class UnavailableError(Exception):