Skip to content

Commit

Permalink
Fix log config
Browse files Browse the repository at this point in the history
  • Loading branch information
jeannettemcd committed Oct 25, 2023
1 parent 6db8043 commit 220c7b5
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions chief_keeper/chief_keeper.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"""
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 220c7b5

Please sign in to comment.