From 071fa3f63c14e33cbfcb82883fcab840371a683c Mon Sep 17 00:00:00 2001 From: Dan Fandrich Date: Fri, 12 Jan 2024 22:08:54 -0800 Subject: Add error logging to git Bugzilla update code (mga#32716) --- deployment/mgagit/templates/git-post-receive-hook | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'deployment') 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) -- cgit v1.2.1