Helps to identify gbs and gbp log output when debugging.
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
"--git-upstream-tag=%s" % upstream_tag,
"--git-spec-vcs-tag=%s#%%(tagname)s" % reponame]
+ if args.debug:
+ argv.append("--git-verbose")
if force_native or is_native_pkg(repo, args):
argv.extend(["--git-no-patch-export",
"--git-upstream-tree=%s" % commit])
"--upstream-branch=%s" % args.upstream_branch, path,
"--tmp-dir=%s" % tmp.path,
]
+ if args.debug:
+ params.append("--verbose")
if not args.no_pristine_tar and os.path.exists("/usr/bin/pristine-tar"):
params.append("--pristine-tar")
LOGGER.setLevel(INFO)
# Set output format
- log_fmt = '%(color)s%(levelname)s: %(coloroff)s%(message)s'
+ if debug:
+ log_fmt = '%(color)s%(name)s:%(levelname)s: %(coloroff)s%(message)s'
+ else:
+ log_fmt = '%(color)s%(levelname)s: %(coloroff)s%(message)s'
LOGGER.set_format(log_fmt)
gbp.log.LOGGER.set_format(log_fmt)