From 705ffef8a9885ba073664df50ba2701584e795c5 Mon Sep 17 00:00:00 2001 From: Jonathan Zernik Date: Thu, 31 Dec 2020 08:56:12 -0800 Subject: [PATCH] Debug failed webapp reply (#530) * Add log line to debug webapp hanlder reply * Log request message * Log type of handler reply * Log type of request message * Fix callling serialize reply * Remove debug log lines --- squeaknode/admin/webapp/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/squeaknode/admin/webapp/app.py b/squeaknode/admin/webapp/app.py index 4dddc34d..5ad11a76 100644 --- a/squeaknode/admin/webapp/app.py +++ b/squeaknode/admin/webapp/app.py @@ -54,7 +54,7 @@ def create_app(handler, username, password): request_message.ParseFromString(data) try: reply = handle_rpc_request(request_message) - return reply.SerializeToString(reply) + return reply.SerializeToString() except Exception as e: logger.error("Error in handle admin web request.", exc_info=True) return str(e), 500