From 220c7b51e4f2e1fd11dd86f0ae20376bd7c52f0a Mon Sep 17 00:00:00 2001 From: Jeannette Date: Wed, 25 Oct 2023 10:50:44 -0500 Subject: [PATCH] Fix log config --- chief_keeper/chief_keeper.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/chief_keeper/chief_keeper.py b/chief_keeper/chief_keeper.py index 45bb2a7..0f6a065 100644 --- a/chief_keeper/chief_keeper.py +++ b/chief_keeper/chief_keeper.py @@ -55,10 +55,6 @@ class ChiefKeeper: logger = logging.getLogger("chief-keeper") - logging.basicConfig( - format="%(asctime)-15s %(levelname)-8s %(message)s", - level=(logging.DEBUG if self.arguments.debug else logging.INFO), - ) def __init__(self, args: list, **kwargs): """Pass in arguements assign necessary variables/objects and instantiate other Classes""" @@ -179,6 +175,11 @@ def __init__(self, args: list, **kwargs): self.confirmations = 0 + logging.basicConfig( + format="%(asctime)-15s %(levelname)-8s %(message)s", + level=(logging.DEBUG if self.arguments.debug else logging.INFO), + ) + def main(self): """Initialize the lifecycle and enter into the Keeper Lifecycle controller.