Skip to content

Commit

Permalink
[Fleet] Change action and policy rate limiter error log level to warn (
Browse files Browse the repository at this point in the history
  • Loading branch information
nchaulet authored Mar 26, 2024
1 parent fbb07ee commit 59b4215
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/pkg/action/dispatcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ func (d *Dispatcher) process(ctx context.Context, hits []es.HitT) {

for agentID, actions := range agentActions {
if err := d.limit.Wait(ctx); err != nil {
zerolog.Ctx(ctx).Error().Err(err).Msg("action dispatcher rate limit error")
zerolog.Ctx(ctx).Warn().Err(err).Msg("action dispatcher rate limit error")
return
}
d.dispatch(ctx, agentID, actions)
Expand Down
2 changes: 1 addition & 1 deletion internal/pkg/policy/monitor.go
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ func (m *monitorT) dispatchPending(ctx context.Context) {
// If too many (checkin) responses are written concurrently memory usage may explode due to allocating gzip writers.
err := m.limit.Wait(ctx)
if err != nil {
m.log.Error().Err(err).Msg("Policy limit error")
m.log.Warn().Err(err).Msg("Policy limit error")
return
}
// Lookup the latest policy for this subscription
Expand Down

0 comments on commit 59b4215

Please sign in to comment.