Skip to content

Commit

Permalink
stopper: downgrade a spammy log message to a log event
Browse files Browse the repository at this point in the history
Downgrade a log message about "throttling async task" to a log
event. This occurs easily for the timeseries usage of `RunLimitedAsync`
task.

Fixes #24512

Release note: None
  • Loading branch information
petermattis committed Apr 5, 2018
1 parent 16262cc commit 073bb37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/util/stop/stopper.go
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ func (s *Stopper) RunLimitedAsyncTask(
if !wait {
return ErrThrottled
}
log.Infof(ctx, "stopper throttling task from %s due to semaphore", taskName)
log.Eventf(ctx, "stopper throttling task from %s due to semaphore", taskName)
// Retry the select without the default.
select {
case sem <- struct{}{}:
Expand Down

0 comments on commit 073bb37

Please sign in to comment.