Skip to content

Commit

Permalink
Merge pull request #66 from jpmckinney/fix-logging-concurrent
Browse files Browse the repository at this point in the history
fix: Set LOGGING_SETUP before setup_logging() to prevent second, parallel call
  • Loading branch information
kindly authored May 8, 2024
2 parents c7036cd + 08e5d57 commit 47c0301
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flatterer/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ def flatten(
):
global LOGGING_SETUP
if not LOGGING_SETUP:
setup_logging("warning")
LOGGING_SETUP = True
setup_logging("warning")

using_tmp = False

Expand Down Expand Up @@ -299,8 +299,8 @@ def cli(

global LOGGING_SETUP
if not LOGGING_SETUP:
setup_logging("info")
LOGGING_SETUP = True
setup_logging("info")
setup_ctrlc()


Expand Down

0 comments on commit 47c0301

Please sign in to comment.