Skip to content

Commit 47c0301

Browse files
authored
Merge pull request #66 from jpmckinney/fix-logging-concurrent
fix: Set LOGGING_SETUP before setup_logging() to prevent second, parallel call
2 parents c7036cd + 08e5d57 commit 47c0301

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

flatterer/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@ def flatten(
100100
):
101101
global LOGGING_SETUP
102102
if not LOGGING_SETUP:
103-
setup_logging("warning")
104103
LOGGING_SETUP = True
104+
setup_logging("warning")
105105

106106
using_tmp = False
107107

@@ -299,8 +299,8 @@ def cli(
299299

300300
global LOGGING_SETUP
301301
if not LOGGING_SETUP:
302-
setup_logging("info")
303302
LOGGING_SETUP = True
303+
setup_logging("info")
304304
setup_ctrlc()
305305

306306

0 commit comments

Comments
 (0)