Skip to content

Commit

Permalink
fix: change api rejected log to error
Browse files Browse the repository at this point in the history
  • Loading branch information
rahulguptajss committed Aug 23, 2023
1 parent f3b3ebc commit 2f42ac4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/poller/collector/collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ func (c *AbstractCollector) Start(wg *sync.WaitGroup) {
// API was rejected, this happens when a resource is not available or does not exist
if errors.Is(err, errs.ErrAPIRequestRejected) {
c.Schedule.SetStandByMode(task, 1*time.Hour)
c.Logger.Info().
c.Logger.Error().
Err(err).
Str("task", task.Name).
Msg("API rejected, entering standby mode")
Expand Down

0 comments on commit 2f42ac4

Please sign in to comment.