log: prepare for the upcoming API change in gbp.log
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Fri, 11 Jul 2014 13:09:26 +0000 (16:09 +0300)
committerQiang Z Zhang <qiang.z.zhang@intel.com>
Mon, 14 Jul 2014 10:09:30 +0000 (13:09 +0300)
Change-Id: I1a1e88722db8946647f748e0710df19bdbb96c58
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
gitbuildsys/log.py

index d85f3c305d034ff4c3b341461c2d63a4b2a7d36e..3332b168ac512ab31be5643ab5363f5200a5f7b2 100644 (file)
@@ -79,6 +79,8 @@ def setup(verbose, debug=False):
     else:
         log_fmt = '%(color)s%(levelname)s: %(coloroff)s%(message)s'
     LOGGER.set_format(log_fmt)
+    if hasattr(gbp.log, 'initialize'):
+        gbp.log.initialize()
     gbp.log.LOGGER.set_format(log_fmt)
 
     # Set output colors