From acc8132ff0b079391f7aaf95c7ec14cfe919b74b Mon Sep 17 00:00:00 2001 From: dickens7 Date: Sun, 15 Sep 2024 10:43:23 +0800 Subject: [PATCH] fix: stacks string fix: stacks string --- server/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/server.go b/server/server.go index 644f9ce8..6649aa4e 100644 --- a/server/server.go +++ b/server/server.go @@ -530,7 +530,7 @@ func (s *Server) processOneRequest(ctx *share.Context, req *protocol.Message, co if s.HandleServiceError != nil { s.HandleServiceError(fmt.Errorf("%v", r)) } else { - log.Errorf("[handler internal error]: servicepath: %s, servicemethod, err: %v,stacks: %s", req.ServicePath, req.ServiceMethod, r, buf) + log.Errorf("[handler internal error]: servicepath: %s, servicemethod, err: %v,stacks: %s", req.ServicePath, req.ServiceMethod, r, string(buf)) } sctx := NewContext(ctx, conn, req, s.AsyncWrite) sctx.WriteError(fmt.Errorf("%v", r))