summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZuul <zuul@review.openstack.org>2019-02-04 16:55:28 +0000
committerGerrit Code Review <review@openstack.org>2019-02-04 16:55:28 +0000
commit710fc6e7eefd49eba884c37209bbe6c0debff93b (patch)
treeaaf12d60ce5445dda703ffe79343d2a48493e02d
parent86d6a46beab1c6c2cb8f120cc26aff73fc944fc9 (diff)
parent680dd1a6637efe7ce099497ec20650c2a2cd0f52 (diff)
Merge "Identify the gerrit source when logging stream-events errors."
-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