From f9979f3f6fc7670f42e412ff8096a98b03ed839b Mon Sep 17 00:00:00 2001 From: Ben Orchard Date: Wed, 8 Mar 2023 19:12:06 +0000 Subject: [PATCH] cmip26: fix logging config --- cmip26.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cmip26.py b/cmip26.py index e1547ac8..e700dfad 100755 --- a/cmip26.py +++ b/cmip26.py @@ -28,8 +28,7 @@ # logging config logging_level = os.environ.get('LOGGING_LEVEL') if logging_level is not None: - logging_level = getattr(logging, logging_level) - logging.basicConfig(level=logging_level) + logging.basicConfig(level=int(logging_level)) logger = logging.getLogger(__name__)