From 4bb3c5f1076a07ecc5557fc6cad15c934a4c04dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakobus=20Sch=C3=BCrz?= Date: Sun, 31 Oct 2021 12:12:59 +0100 Subject: [PATCH] change logging format for python 3 --- gitosis/run_hook.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gitosis/run_hook.py b/gitosis/run_hook.py index d2a2d11..52716e8 100644 --- a/gitosis/run_hook.py +++ b/gitosis/run_hook.py @@ -70,11 +70,11 @@ class Main(app.App): log.error('Must have GIT_DIR set in enviroment') sys.exit(1) else: - log.debug("GIT_DIR", git_dir) + log.debug("GIT_DIR %s".format(git_dir)) if hook == 'post-update': - log.info('Running hook %s', hook) + log.info('Running hook %s'.format(hook)) post_update(cfg, git_dir) log.info('Done.') else: - log.warning('Ignoring unknown hook: %r', hook) + log.warning('Ignoring unknown hook: %r'.format(hook))