Skip to content

Commit

Permalink
chore: mute logs
Browse files Browse the repository at this point in the history
  • Loading branch information
chronark committed Sep 20, 2024
1 parent d4d7f17 commit cf97625
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion apps/agent/services/ratelimit/mitigate.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down
1 change: 0 additions & 1 deletion apps/agent/services/ratelimit/ratelimit_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit cf97625

Please sign in to comment.