Skip to content

Commit e4f22b5

Browse files
committed
Adjust global log limit to 1ms
1 parent 9fc7413 commit e4f22b5

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎pkg/util/runtime/runtime.go‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,10 @@ var ErrorHandlers = []func(error){
8787
logError,
8888
(&rudimentaryErrorBackoff{
8989
lastErrorTime: time.Now(),
90-
minPeriod: 500 * time.Millisecond,
90+
// 1ms was the number folks were able to stomach as a global rate limit.
91+
// If you need to log errors more than 1000 times a second you
92+
// should probably consider fixing your code instead. :)
93+
minPeriod: time.Millisecond,
9194
}).OnError,
9295
}
9396

0 commit comments

Comments
 (0)