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)
committerLi Jinjing <jinjingx.li@intel.com>
Tue, 30 Sep 2014 03:28:11 +0000 (11:28 +0800)
Change-Id: I1a1e88722db8946647f748e0710df19bdbb96c58
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
gitbuildsys/log.py

index 42aeaf8bdd9af14e02bae092f26d4cf808a15768..f6c2d8cbe48d4e52b542d3c3e218221c4b02d63c 100644 (file)
@@ -76,6 +76,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