Skip to content

Commit

Permalink
Only enable debugging when DEBUG is set
Browse files Browse the repository at this point in the history
  • Loading branch information
rrthomas committed Dec 11, 2024
1 parent 43dec1c commit 55ae744
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nancy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@

from .warnings_util import simple_warning, die

logging.basicConfig(level=logging.DEBUG)
if "DEBUG" in os.environ:
logging.basicConfig(level=logging.DEBUG)

VERSION = importlib.metadata.version("nancy")

Expand Down

0 comments on commit 55ae744

Please sign in to comment.