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
This commit is contained in:
Jonathan Zernik 2020-12-31 08:56:12 -08:00 committed by GitHub
parent 98d9b5a87d
commit 705ffef8a9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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