diff --git a/nancy/__init__.py b/nancy/__init__.py index 7274626..30e19bc 100644 --- a/nancy/__init__.py +++ b/nancy/__init__.py @@ -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")