Merge "Identify the gerrit source when logging stream-events errors."

This commit is contained in:
Zuul 2019-02-04 16:55:28 +00:00 committed by Gerrit Code Review
commit 710fc6e7ee
1 changed files with 2 additions and 1 deletions

View File

@ -269,7 +269,8 @@ class GerritWatcher(threading.Thread):
if ret and ret not in [-1, 130]: if ret and ret not in [-1, 130]:
raise Exception("Gerrit error executing stream-events") raise Exception("Gerrit error executing stream-events")
except Exception: except Exception:
self.log.exception("Exception on ssh event stream:") self.log.exception("Exception on ssh event stream with %s:",
self.gerrit_connection.connection_name)
time.sleep(5) time.sleep(5)
finally: finally:
# If we don't close on exceptions to connect we can leak the # If we don't close on exceptions to connect we can leak the