This commit is contained in:
crusader 2017-11-28 11:55:25 +09:00
parent 4a4efdd0ef
commit 2aebcbab5e

View File

@ -21,7 +21,11 @@ func (sh *ServletHandlers) Invoke(requestCodec protocol.RegistryCodec) (result i
result, err = sh.RPCRegistry.Invoke(requestCodec) result, err = sh.RPCRegistry.Invoke(requestCodec)
if nil != err { 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 return