Don't log tracebacks on streaming errors
A remote disconnection is not unexpected in the log streamer. Log the error but not the traceback. Change-Id: Iafe953aa2f644a59557334f61e04460a2dcdffde
This commit is contained in:
parent
8f75869b6a
commit
dbd1db370c
@ -79,6 +79,9 @@ class RequestHandler(streamer_utils.BaseFingerRequestHandler):
|
||||
|
||||
try:
|
||||
self.stream_log(log_file)
|
||||
except (ConnectionResetError, BrokenPipeError) as e:
|
||||
self.log.error("Streaming failure for build UUID %s: %s",
|
||||
build_uuid, str(e))
|
||||
except Exception:
|
||||
self.log.exception("Streaming failure for build UUID %s:",
|
||||
build_uuid)
|
||||
|
Loading…
x
Reference in New Issue
Block a user