fix gbp.log error in opensuse
authorJun Wang <junbill.wang@samsung.com>
Wed, 3 Feb 2016 15:40:55 +0000 (23:40 +0800)
committerJun Wang <junbill.wang@samsung.com>
Mon, 29 Feb 2016 10:44:01 +0000 (18:44 +0800)
Change-Id: I1fc96948cbd8da9a6325b67ab511ae2c6a199c6e

gbp/log.py

index 7b9a4aa..5f8ae10 100644 (file)
@@ -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: