projects
/
tools
/
git-buildpackage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
af42c4a
)
fix gbp.log error in opensuse
author
Jun Wang
<junbill.wang@samsung.com>
Wed, 3 Feb 2016 15:40:55 +0000
(23:40 +0800)
committer
Jun Wang
<junbill.wang@samsung.com>
Mon, 29 Feb 2016 10:44:01 +0000
(18:44 +0800)
Change-Id: I1fc96948cbd8da9a6325b67ab511ae2c6a199c6e
gbp/log.py
patch
|
blob
|
history
diff --git
a/gbp/log.py
b/gbp/log.py
index
7b9a4aa
..
5f8ae10
100644
(file)
--- 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: