From 459d25f5bba3c40f53ef6b91ee632a092305d73b Mon Sep 17 00:00:00 2001 From: ethan-cartwright Date: Tue, 12 Mar 2024 16:03:01 -0400 Subject: [PATCH] fix: update log level (#21) Co-authored-by: Ethan Cartwright Co-authored-by: Mayuri Nehate <33225191+mayurinehate@users.noreply.github.com> --- datahub-classify/src/datahub_classify/infotype_utils.py | 6 +++--- datahub-classify/tests/infotypes_benchmarking.py | 1 - 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/datahub-classify/src/datahub_classify/infotype_utils.py b/datahub-classify/src/datahub_classify/infotype_utils.py index cf741c3..4e50c38 100644 --- a/datahub-classify/src/datahub_classify/infotype_utils.py +++ b/datahub-classify/src/datahub_classify/infotype_utils.py @@ -109,13 +109,13 @@ def perform_basic_checks( and prediction_factors.get(VALUES, None) and len(values) < minimum_values_threshold ): - logger.warning( - f"The number of values for column {metadata.name}" + logger.debug( + f"The number of values for column {metadata.name} " f"does not meet minimum threshold for {infotype}" ) basic_checks_status = False elif exclude_name is not None and metadata.name in exclude_name: - logger.warning(f"Excluding match for {infotype} on column {metadata.name}") + logger.debug(f"Excluding match for {infotype} on column {metadata.name}") basic_checks_status = False # TODO: Add more basic checks return basic_checks_status diff --git a/datahub-classify/tests/infotypes_benchmarking.py b/datahub-classify/tests/infotypes_benchmarking.py index 773152d..50cac09 100644 --- a/datahub-classify/tests/infotypes_benchmarking.py +++ b/datahub-classify/tests/infotypes_benchmarking.py @@ -4,7 +4,6 @@ $ python infotypes_benchmarking.py """ - import os import time