From 3413fc3d8a38204a94b9433723c5f1d8866cab91 Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Fri, 21 Apr 2017 14:40:09 -0400 Subject: [PATCH] Add missing logging for IOError issue in archived logs --- data/archivedlogs.py | 1 + 1 file changed, 1 insertion(+) diff --git a/data/archivedlogs.py b/data/archivedlogs.py index aec20cafc..869be946a 100644 --- a/data/archivedlogs.py +++ b/data/archivedlogs.py @@ -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)