From: Markus Lehtonen Date: Wed, 21 Nov 2012 07:28:56 +0000 (+0200) Subject: log: set gbp verbose logging if --debug is specified X-Git-Tag: 0.13~31 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4724923b221469be186d66b7c79abeb6cfd47be9;p=tools%2Fgbs.git log: set gbp verbose logging if --debug is specified Signed-off-by: Markus Lehtonen --- diff --git a/gitbuildsys/log.py b/gitbuildsys/log.py index 18c30fb..42aeaf8 100644 --- a/gitbuildsys/log.py +++ b/gitbuildsys/log.py @@ -69,9 +69,10 @@ def setup(verbose, debug=False): else: LOGGER.setLevel(INFO) - # Set output format + # Set output format and verbosity for gbp if debug: log_fmt = '%(color)s%(name)s:%(levelname)s: %(coloroff)s%(message)s' + gbp.log.LOGGER.setLevel(DEBUG) else: log_fmt = '%(color)s%(levelname)s: %(coloroff)s%(message)s' LOGGER.set_format(log_fmt)