Log gerrit comment

Always log the gerrit comment, and when running in nocomment just don't
send it to gerrit. This helps make testing changes to the gerrit comment
easier.

Change-Id: Ie26b86ed374d284154389b4bd5a86b9d2f365800
This commit is contained in:
Joe Gordon
2014-01-30 19:27:48 -08:00
parent cd37ee2369
commit 5c6dc37552
2 changed files with 12 additions and 10 deletions

View File

@@ -193,11 +193,9 @@ class RecheckWatch(threading.Thread):
self._read(event)
else:
self._read(event)
if self.commenting:
stream.leave_comment(
event.project,
event.name(),
event.bugs)
stream.leave_comment(
event,
debug=not self.commenting)
except er.ResultTimedOut as e:
LOG.warn(e.msg)
self._read(msg=e.msg)