diff --git a/distroinfo/__init__.py b/distroinfo/__init__.py index c6583d4..d126880 100644 --- a/distroinfo/__init__.py +++ b/distroinfo/__init__.py @@ -1,4 +1,9 @@ import pbr.version +import logging + + +logging.basicConfig(level=logging.WARNING) +logging.getLogger("distroinfo").setLevel(logging.WARNING) version_info = pbr.version.VersionInfo('distroinfo') try: diff --git a/distroinfo/fetch.py b/distroinfo/fetch.py index c6f44ea..48a002b 100644 --- a/distroinfo/fetch.py +++ b/distroinfo/fetch.py @@ -13,7 +13,6 @@ from distroinfo import repoman -logging.basicConfig(level=logging.ERROR) log = logging.getLogger("distroinfo") diff --git a/distroinfo/repoman.py b/distroinfo/repoman.py index cf81caa..7a7ae88 100644 --- a/distroinfo/repoman.py +++ b/distroinfo/repoman.py @@ -9,7 +9,6 @@ from distroinfo.helpers import git -logging.basicConfig(level=logging.ERROR) log = logging.getLogger("distroinfo")