From 98bd5f9eb9f34537a64dd10cc16dd7989afcb4fb Mon Sep 17 00:00:00 2001 From: Jonathan Zernik Date: Tue, 12 Oct 2021 01:38:43 -0700 Subject: [PATCH] Use logger.exception in app.py when request fails (#1570) --- squeaknode/admin/webapp/app.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/squeaknode/admin/webapp/app.py b/squeaknode/admin/webapp/app.py index e5b0d215..ccbd5cbe 100644 --- a/squeaknode/admin/webapp/app.py +++ b/squeaknode/admin/webapp/app.py @@ -83,8 +83,7 @@ def create_app(handler, username, password): reply = func(request_message) return reply.SerializeToString() except Exception as e: - logger.error( - "Error in handle admin web request.", exc_info=True) + logger.exception("Error in handle admin web request.") return str(e), 500 return wrapper return decorator