summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Vinciguerra <pvinci@vinciconsulting.com>2019-01-28 12:37:50 -0500
committerPaul Vinciguerra <pvinci@vinciconsulting.com>2019-01-28 13:17:20 -0500
commit680dd1a6637efe7ce099497ec20650c2a2cd0f52 (patch)
tree4faec9a2d09f9b6356fc78394ed3cb44f61b1a98
parentf019543ce93f969e13c95f08092735cde221856e (diff)
Identify the gerrit source when logging stream-events errors.
Was found to be useful while troubleshooting. Change-Id: I363afc0f8c5044967d30a75b591b634ecd423443 Signed-off-by: Paul Vinciguerra <pvinci@vinciconsulting.com>
Notes
Notes (review): Code-Review+2: Tobias Henkel <tobias.henkel@bmw.de> Code-Review+2: Monty Taylor <mordred@inaugust.com> Workflow+1: Monty Taylor <mordred@inaugust.com> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Mon, 04 Feb 2019 16:55:28 +0000 Reviewed-on: https://review.openstack.org/633567 Project: openstack-infra/zuul Branch: refs/heads/master
-rw-r--r--zuul/driver/gerrit/gerritconnection.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/zuul/driver/gerrit/gerritconnection.py b/zuul/driver/gerrit/gerritconnection.py
index ec949ce..2a0c3a1 100644
--- a/zuul/driver/gerrit/gerritconnection.py
+++ b/zuul/driver/gerrit/gerritconnection.py
@@ -269,7 +269,8 @@ class GerritWatcher(threading.Thread):
269 if ret and ret not in [-1, 130]: 269 if ret and ret not in [-1, 130]:
270 raise Exception("Gerrit error executing stream-events") 270 raise Exception("Gerrit error executing stream-events")
271 except Exception: 271 except Exception:
272 self.log.exception("Exception on ssh event stream:") 272 self.log.exception("Exception on ssh event stream with %s:",
273 self.gerrit_connection.connection_name)
273 time.sleep(5) 274 time.sleep(5)
274 finally: 275 finally:
275 # If we don't close on exceptions to connect we can leak the 276 # If we don't close on exceptions to connect we can leak the