Skip to content

Commit a8b135f

Browse files
committed
Merge tag '0.21.1' into develop
2 parents ad8e05a + f7f5fec commit a8b135f

File tree

3 files changed

+17
-1
lines changed

3 files changed

+17
-1
lines changed

CHANGELOG

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
ChangeLog
33
*********
44

5+
0.21.1 (2017-07-20)
6+
===================
7+
- Fix: Quiet some overly-verbose error logging.
8+
59
0.21.0 (2017-04-07)
610
===================
711
- Feature: Turn on scrolling for the MFR iframe to support wide JASP files.

mfr/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
__version__ = '0.21.0'
1+
__version__ = '0.21.1'
22
__import__('pkg_resources').declare_namespace(__name__)

mfr/server/handlers/core.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,18 @@ def write_error(self, status_code, exc_info):
193193
</div>
194194
''')
195195

196+
# avoid dumping duplicate information to application log
197+
def log_exception(self, typ, value, tb):
198+
if isinstance(value, tornado.web.HTTPError):
199+
if value.log_message:
200+
format = "%d %s: " + value.log_message
201+
args = ([value.status_code, self._request_summary()] +
202+
list(value.args))
203+
tornado.web.gen_log.warning(format, *args)
204+
else:
205+
tornado.web.app_log.error("Uncaught exception %s\n", self._request_summary(),
206+
exc_info=(typ, value, tb))
207+
196208
def on_finish(self):
197209
if self.request.method not in self.ALLOWED_METHODS:
198210
return

0 commit comments

Comments
 (0)