From 134a725006107cdb41f69fc14af4f4415cde2419 Mon Sep 17 00:00:00 2001 From: crusader Date: Thu, 19 Apr 2018 23:45:56 +0900 Subject: [PATCH] ing --- servlet/rpc-servlet.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/servlet/rpc-servlet.go b/servlet/rpc-servlet.go index ed8830f..64b4184 100644 --- a/servlet/rpc-servlet.go +++ b/servlet/rpc-servlet.go @@ -111,6 +111,13 @@ func (s *RPCServlets) Handle(servletCtx server.ServletCtx, grpcCtx = metadata.NewOutgoingContext(context.Background(), md) grpcReply, err = ogeg.Exec(grpcCtx, method, params...) + if nil != err { + logging.Logger().Error(err) + } + + if !src.HasResponse() { + break + } replyBuff, err = src.NewResponseWithString(grpcReply, err) if nil != err { logging.Logger().Error(err)