change logging format for python 3

This commit is contained in:
Jakobus Schürz 2021-10-31 12:12:59 +01:00
parent 0934212421
commit 4bb3c5f107

View file

@ -70,11 +70,11 @@ class Main(app.App):
log.error('Must have GIT_DIR set in enviroment') log.error('Must have GIT_DIR set in enviroment')
sys.exit(1) sys.exit(1)
else: else:
log.debug("GIT_DIR", git_dir) log.debug("GIT_DIR %s".format(git_dir))
if hook == 'post-update': if hook == 'post-update':
log.info('Running hook %s', hook) log.info('Running hook %s'.format(hook))
post_update(cfg, git_dir) post_update(cfg, git_dir)
log.info('Done.') log.info('Done.')
else: else:
log.warning('Ignoring unknown hook: %r', hook) log.warning('Ignoring unknown hook: %r'.format(hook))