aboutsummaryrefslogtreecommitdiffstats
path: root/deployment/mgagit
diff options
context:
space:
mode:
authorDan Fandrich <danf@mageia.org>2024-01-12 22:08:54 -0800
committerDan Fandrich <danf@mageia.org>2024-01-12 22:34:31 -0800
commit071fa3f63c14e33cbfcb82883fcab840371a683c (patch)
tree7bbe6a1f68fff680c95ba29d6eef62946e83c7fb /deployment/mgagit
parent94175172473b77364650085dccdd6f26b18528e6 (diff)
downloadpuppet-071fa3f63c14e33cbfcb82883fcab840371a683c.tar
puppet-071fa3f63c14e33cbfcb82883fcab840371a683c.tar.gz
puppet-071fa3f63c14e33cbfcb82883fcab840371a683c.tar.bz2
puppet-071fa3f63c14e33cbfcb82883fcab840371a683c.tar.xz
puppet-071fa3f63c14e33cbfcb82883fcab840371a683c.zip
Add error logging to git Bugzilla update code (mga#32716)
Diffstat (limited to 'deployment/mgagit')
-rwxr-xr-xdeployment/mgagit/templates/git-post-receive-hook4
1 files changed, 2 insertions, 2 deletions
diff --git a/deployment/mgagit/templates/git-post-receive-hook b/deployment/mgagit/templates/git-post-receive-hook
index 1d682547..087f9133 100755
--- a/deployment/mgagit/templates/git-post-receive-hook
+++ b/deployment/mgagit/templates/git-post-receive-hook
@@ -1,8 +1,8 @@
#!/usr/bin/python2
-import sys
import os
import re
+import sys
LIBDIR = '<%= @gitolite_commonhooksdir %>'
sys.path.insert(0, LIBDIR)
@@ -183,7 +183,7 @@ class MageiaLinksRevision(git_multimail.Revision):
print "Updated bugzilla bugs: %s" % ", ".join(bugs['Mageia'])
except:
print "Unable to post to bugzilla bugs: %s :(" % ", ".join(bugs['Mageia'])
- pass
+ print sys.exc_info()[1]
break
m = COMMIT_RE.search(line)