Skip to content

Commit

Permalink
Fixed multirpc logging
Browse files Browse the repository at this point in the history
  • Loading branch information
davidzhao committed Oct 1, 2023
1 parent 5b156a9 commit fe7c6b1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions psrpc/logging.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,12 +156,12 @@ func (r *multiRPCLoggerInterceptor) Send(ctx context.Context, req proto.Message,
}

func (r *multiRPCLoggerInterceptor) Recv(msg proto.Message, err error) {
if err == nil {
if err != nil {
r.logger.Warnw("received error", err)
r.responseCount++
r.errorCount++
} else {
r.logger.Debugw("received response", "response", logger.Proto(msg))
r.errorCount++
r.responseCount++
}
r.ClientMultiRPCHandler.Recv(msg, err)
}
Expand Down

0 comments on commit fe7c6b1

Please sign in to comment.