Skip to content

Commit

Permalink
Fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
vitalyisaev2 committed Nov 20, 2024
1 parent c177494 commit 9b60bf3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/server/grpc_metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ func UnaryServerMetrics(logger *zap.Logger, registry metrics.Registry) grpc.Unar

stacktrace := make([]byte, 1024)
runtime.Stack(stacktrace, false)
logger.Error("panic occured", zap.Any("error", p), zap.String("stacktrace", fmt.Sprint(string(stacktrace))))
logger.Error("panic occurred", zap.Any("error", p), zap.String("stacktrace", fmt.Sprint(string(stacktrace))))
}
}

Expand Down Expand Up @@ -195,7 +195,7 @@ func StreamServerMetrics(logger *zap.Logger, registry metrics.Registry) grpc.Str

stacktrace := make([]byte, 1024)
runtime.Stack(stacktrace, false)
logger.Error("panic occured", zap.Any("error", p), zap.String("stacktrace", fmt.Sprint(string(stacktrace))))
logger.Error("panic occurred", zap.Any("error", p), zap.String("stacktrace", fmt.Sprint(string(stacktrace))))
}
}

Expand Down

0 comments on commit 9b60bf3

Please sign in to comment.