From ea0ff5748efb19b6cfd6b394a5a621547dd716ae Mon Sep 17 00:00:00 2001 From: Jessy Barrette <30420025+JessyBarrette@users.noreply.github.com> Date: Wed, 20 Mar 2024 11:37:29 -0400 Subject: [PATCH] fix logger level input --- harvester/cde_harvester/__main__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/harvester/cde_harvester/__main__.py b/harvester/cde_harvester/__main__.py index 9ddea734..15d35b29 100644 --- a/harvester/cde_harvester/__main__.py +++ b/harvester/cde_harvester/__main__.py @@ -41,7 +41,7 @@ def setup_logging(log_time, log_level): # setup logging logging.basicConfig( - level=logging.DEBUG, + level=logging.getLevelName(log_level.upper()), format="%(asctime)s - %(name)s : %(message)s" if log_time else "%(name)s : %(message)s",