From 2aebcbab5ec6e02dfbd48846435a6a5ac4138a9e Mon Sep 17 00:00:00 2001 From: crusader Date: Tue, 28 Nov 2017 11:55:25 +0900 Subject: [PATCH] ing --- server/servlet_handlers.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/server/servlet_handlers.go b/server/servlet_handlers.go index eaebba4..1dc7c45 100644 --- a/server/servlet_handlers.go +++ b/server/servlet_handlers.go @@ -21,7 +21,11 @@ func (sh *ServletHandlers) Invoke(requestCodec protocol.RegistryCodec) (result i result, err = sh.RPCRegistry.Invoke(requestCodec) if nil != err { - + if params, pErr := requestCodec.Params(); nil != err { + logging.Logger().Error(fmt.Sprintf("RPC Servlet Handler: Read Param of Method[%s] returns error %v", requestCodec.Method(), pErr)) + } else { + logging.Logger().Error(fmt.Sprintf("RPC Servlet Handler: Method[%s] params[%v] returns error %v", requestCodec.Method(), params, err)) + } } return