Adjust global log limit to 1ms

pull/6/head
Daniel Smith 2017-01-26 12:54:25 -08:00
parent b03b5de5af
commit 16b7bee56d
1 changed files with 4 additions and 1 deletions

View File

@ -87,7 +87,10 @@ var ErrorHandlers = []func(error){
logError, logError,
(&rudimentaryErrorBackoff{ (&rudimentaryErrorBackoff{
lastErrorTime: time.Now(), lastErrorTime: time.Now(),
minPeriod: 500 * time.Millisecond, // 1ms was the number folks were able to stomach as a global rate limit.
// If you need to log errors more than 1000 times a second you
// should probably consider fixing your code instead. :)
minPeriod: time.Millisecond,
}).OnError, }).OnError,
} }