# HG changeset patch # User Mads Kiilerich # Date 1623327608 -7200 # Node ID 2a57d3660003730fc6d8015bf14e3cf92908b2dd # Parent 98cbebff6afc78319900d295f93c7ab0e1544156 git: show warning when removing existing unused Kallithea hook These hooks are no longer used and should be removed, but it is nice to have explicit logging when it happens. diff -r 98cbebff6afc -r 2a57d3660003 kallithea/model/scm.py --- a/kallithea/model/scm.py Thu Jun 10 12:25:32 2021 +0200 +++ b/kallithea/model/scm.py Thu Jun 10 14:20:08 2021 +0200 @@ -713,6 +713,7 @@ log.error('error writing hook %s: %s', hook_file, e) elif h_type == 'pre-receive': # no longer used, so just remove any existing Kallithea hook if os.path.lexists(hook_file) and not other_hook: + log.warning('removing existing unused Kallithea hook %s', hook_file) os.remove(hook_file)