Skip to content

Commit 2f9a712

Browse files
authored
Merge pull request #874 from dickens7/fix-log
fix: stacks string
2 parents 8914b35 + acc8132 commit 2f9a712

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/server.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,7 @@ func (s *Server) processOneRequest(ctx *share.Context, req *protocol.Message, co
530530
if s.HandleServiceError != nil {
531531
s.HandleServiceError(fmt.Errorf("%v", r))
532532
} else {
533-
log.Errorf("[handler internal error]: servicepath: %s, servicemethod, err: %v,stacks: %s", req.ServicePath, req.ServiceMethod, r, buf)
533+
log.Errorf("[handler internal error]: servicepath: %s, servicemethod, err: %v,stacks: %s", req.ServicePath, req.ServiceMethod, r, string(buf))
534534
}
535535
sctx := NewContext(ctx, conn, req, s.AsyncWrite)
536536
sctx.WriteError(fmt.Errorf("%v", r))

0 commit comments

Comments
 (0)