Skip to content

Commit

Permalink
fix: don't add a handler if there's already one
Browse files Browse the repository at this point in the history
Signed-off-by: Henry Schreiner <[email protected]>
  • Loading branch information
henryiii committed Oct 28, 2024
1 parent 7dd02a8 commit 60396e8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions nox/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,9 @@ def setup_logging(
colorlog. Otherwise, it will be plaintext.
"""
root_logger = logging.getLogger()
if root_logger.hasHandlers():
return

if verbose:
root_logger.setLevel(OUTPUT)
else:
Expand Down

0 comments on commit 60396e8

Please sign in to comment.