From cf976257495eb709853e8fd2cb4f57b016b305d0 Mon Sep 17 00:00:00 2001 From: chronark Date: Fri, 20 Sep 2024 18:37:15 +0200 Subject: [PATCH] chore: mute logs --- apps/agent/services/ratelimit/mitigate.go | 2 +- apps/agent/services/ratelimit/ratelimit_replication_test.go | 1 - apps/agent/services/ratelimit/ratelimit_test.go | 1 - 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/apps/agent/services/ratelimit/mitigate.go b/apps/agent/services/ratelimit/mitigate.go index b013d8cf17..92c463e279 100644 --- a/apps/agent/services/ratelimit/mitigate.go +++ b/apps/agent/services/ratelimit/mitigate.go @@ -63,7 +63,7 @@ func (s *service) broadcastMitigation(req mitigateWindowRequest) { if err != nil { s.logger.Err(err).Msg("failed to call mitigate") } else { - s.logger.Info().Str("peerId", peer.id).Msg("broadcasted mitigation") + s.logger.Debug().Str("peerId", peer.id).Msg("broadcasted mitigation") } } } diff --git a/apps/agent/services/ratelimit/ratelimit_replication_test.go b/apps/agent/services/ratelimit/ratelimit_replication_test.go index a3631c5f95..3ad69eacb2 100644 --- a/apps/agent/services/ratelimit/ratelimit_replication_test.go +++ b/apps/agent/services/ratelimit/ratelimit_replication_test.go @@ -137,7 +137,6 @@ func TestSync(t *testing.T) { require.True(t, ok) bucket.RLock() window := bucket.getCurrentWindow(now) - t.Logf("window on origin: %+v", window) counter := window.Counter bucket.RUnlock() diff --git a/apps/agent/services/ratelimit/ratelimit_test.go b/apps/agent/services/ratelimit/ratelimit_test.go index 1d2c7dcc92..3338aba0fc 100644 --- a/apps/agent/services/ratelimit/ratelimit_test.go +++ b/apps/agent/services/ratelimit/ratelimit_test.go @@ -94,7 +94,6 @@ func TestAccuracy_fixed_time(t *testing.T) { t.Run(fmt.Sprintf("limit:%d", limit), func(t *testing.T) { for _, duration := range []time.Duration{ - 1 * time.Second, 10 * time.Second, 1 * time.Minute, 5 * time.Minute,