Skip to content

Commit

Permalink
log: set default log level to WARNING
Browse files Browse the repository at this point in the history
Verbose operation can be enabled by setting proper log level on
'distroinfo' logger, but don't spam by default.

Change-Id: I61ea3a61b39199e661f5f668a357bb05b6d56832
  • Loading branch information
Jakub Ružička committed Feb 7, 2019
1 parent 18eb6ba commit 93d4dce
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
5 changes: 5 additions & 0 deletions distroinfo/__init__.py
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
1 change: 0 additions & 1 deletion distroinfo/fetch.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
from distroinfo import repoman


logging.basicConfig(level=logging.ERROR)
log = logging.getLogger("distroinfo")


Expand Down
1 change: 0 additions & 1 deletion distroinfo/repoman.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
from distroinfo.helpers import git


logging.basicConfig(level=logging.ERROR)
log = logging.getLogger("distroinfo")


Expand Down

0 comments on commit 93d4dce

Please sign in to comment.