From e823bb201240261cf9995c3a791e867c15e31f5b Mon Sep 17 00:00:00 2001 From: Job Evers-Meltzer Date: Fri, 30 Dec 2016 16:48:44 -0600 Subject: [PATCH] Bug fix in auth.server Fixes a mistake in fa8190356ad22ffeba1947793aaab17085e08ebe, where an usage of _log_and_render_error was overlooked --- lbrynet/lbrynet_daemon/auth/server.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lbrynet/lbrynet_daemon/auth/server.py b/lbrynet/lbrynet_daemon/auth/server.py index 959a22830..7779fd9d2 100644 --- a/lbrynet/lbrynet_daemon/auth/server.py +++ b/lbrynet/lbrynet_daemon/auth/server.py @@ -312,8 +312,8 @@ class AuthJSONRPCServer(AuthorizedBase): self._set_headers(request, encoded_message, auth_required) self._render_message(request, encoded_message) except Exception as err: - msg = "Failed to render API response: %s" - self._log_and_render_error(err, request, message=msg, version=version) + log.exception("Failed to render API response: %s", result) + self._render_error(err, request, version) def _render_response(self, result, code): return defer.succeed({'result': result, 'code': code})