From: Markus Lehtonen Date: Fri, 11 Jul 2014 13:09:26 +0000 (+0300) Subject: log: prepare for the upcoming API change in gbp.log X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=dcada3022c67c273ed44f184e8482d9f4bcce433;p=tools%2Fgbs.git log: prepare for the upcoming API change in gbp.log Change-Id: I1a1e88722db8946647f748e0710df19bdbb96c58 Signed-off-by: Markus Lehtonen --- diff --git a/gitbuildsys/log.py b/gitbuildsys/log.py index 42aeaf8..f6c2d8c 100644 --- a/gitbuildsys/log.py +++ b/gitbuildsys/log.py @@ -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