Add missing logging for IOError issue in archived logs

This commit is contained in:
Joseph Schorr 2017-04-21 14:40:09 -04:00
parent 3b26e819d3
commit 3413fc3d8a

View file

@ -21,6 +21,7 @@ class LogArchiveHandlers(UserfilesHandlers):
data_stream = self._storage.stream_read_file(self._locations, path)
return send_file(GzipInputStream(data_stream), mimetype=JSON_MIMETYPE)
except IOError:
logger.exception('Could not read archived logs')
abort(404)