From c7f3c1b2ccf00a2287a5eec8363cf9adecb0dbb3 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Sun, 23 Mar 2025 13:16:13 +0800 Subject: [PATCH] :mute: Disable pushing websocket logs --- pkg/internal/grpc/stream.go | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/pkg/internal/grpc/stream.go b/pkg/internal/grpc/stream.go index 8f08dbc..0460fa5 100644 --- a/pkg/internal/grpc/stream.go +++ b/pkg/internal/grpc/stream.go @@ -5,7 +5,6 @@ import ( "fmt" "git.solsynth.dev/hypernet/nexus/pkg/internal/web/ws" - "github.com/rs/zerolog/log" "git.solsynth.dev/hypernet/nexus/pkg/proto" "github.com/samber/lo" @@ -31,14 +30,6 @@ func (v *Server) PushStream(ctx context.Context, request *proto.PushStreamReques } success := len(successes) - log.Debug(). - Str("client_id", request.GetClientId()). - Uint64("user_id", request.GetUserId()). - Int("count", cnt). - Int("success", success). - Int("failed", len(errs)). - Msgf("Pushed a websocket package to client / user...") - if len(errs) > 0 { // Partial fail return &proto.PushStreamResponse{ @@ -79,14 +70,6 @@ func (v *Server) PushStreamBatch(ctx context.Context, request *proto.PushStreamB } success := len(successes) - log.Debug(). - Any("client_id", request.GetClientId()). - Any("user_id", request.GetUserId()). - Int("count", cnt). - Int("success", success). - Int("failed", len(errs)). - Msgf("Pushed a websocket package to client / user...") - if len(errs) > 0 { // Partial fail return &proto.PushStreamResponse{