From 0e125cbeebd68ef818a5d0d81271ce600007ea05 Mon Sep 17 00:00:00 2001 From: Markus Lehtonen Date: Fri, 11 Jul 2014 16:09:26 +0300 Subject: [PATCH] log: prepare for the upcoming API change in gbp.log Change-Id: I1a1e88722db8946647f748e0710df19bdbb96c58 Signed-off-by: Markus Lehtonen --- gitbuildsys/log.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gitbuildsys/log.py b/gitbuildsys/log.py index d85f3c3..3332b16 100644 --- a/gitbuildsys/log.py +++ b/gitbuildsys/log.py @@ -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 -- 2.34.1