summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJun Wang <junbill.wang@samsung.com>2016-02-03 23:40:55 +0800
committerJun Wang <junbill.wang@samsung.com>2016-02-29 18:44:01 +0800
commit91894415dc3a1e4f3056b680ffab9e737aed0f50 (patch)
tree29aea8d237ee964208aa08eea59f40032fc78f41
parentaf42c4afe972e7c2ac32284fa1afc2399726da1f (diff)
downloadgit-buildpackage-91894415dc3a1e4f3056b680ffab9e737aed0f50.tar.gz
git-buildpackage-91894415dc3a1e4f3056b680ffab9e737aed0f50.tar.bz2
git-buildpackage-91894415dc3a1e4f3056b680ffab9e737aed0f50.zip
fix gbp.log error in opensuse
Change-Id: I1fc96948cbd8da9a6325b67ab511ae2c6a199c6e
-rw-r--r--gbp/log.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gbp/log.py b/gbp/log.py
index 7b9a4aa8..5f8ae107 100644
--- a/gbp/log.py
+++ b/gbp/log.py
@@ -172,8 +172,8 @@ def _parse_color_scheme(color_scheme=""):
def getLogger(*args, **kwargs):
"""Gbp-specific function"""
- if not issubclass(logging.getLoggerClass(), GbpLogger):
- logging.setLoggerClass(GbpLogger)
+# if not issubclass(logging.getLoggerClass(), GbpLogger):
+ logging.setLoggerClass(GbpLogger)
color = kwargs.pop('color') if 'color' in kwargs else 'auto'
logger = logging.getLogger(*args, **kwargs)
if hasattr(logger, 'default_handlers') and not logger.default_handlers: