Merge pull request #2563 from coreos-inc/log-exception
Add missing logging for IOError issue in archived logs
This commit is contained in:
commit
e9672326a8
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||
|
||||
|
||||
|
|
Reference in a new issue