Merge pull request #2563 from coreos-inc/log-exception

Add missing logging for IOError issue in archived logs
This commit is contained in:
josephschorr 2017-04-21 14:41:22 -04:00 committed by GitHub
commit e9672326a8

View file

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