Merge "Identify the gerrit source when logging stream-events errors."
This commit is contained in:
commit
710fc6e7ee
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue