This commit is contained in:
Sridhar Ratnakumar 2013-07-11 18:36:12 -07:00
parent 1faae64bdb
commit 6af3d03d43
1 changed files with 1 additions and 1 deletions

View File

@ -270,7 +270,7 @@ func (tail *Tail) sendLine(line []byte) bool {
tail.Lines <- &Line{line, now, nil} tail.Lines <- &Line{line, now, nil}
rate := tail.rateMon.Tick(nowUnix) rate := tail.rateMon.Tick(nowUnix)
if tail.LimitRate > 0 && rate > tail.LimitRate { if tail.LimitRate > 0 && rate > tail.LimitRate {
log.Printf("Rate limit (%v < %v) reached file (%v); entering 1s cooloff period.\n", log.Printf("Rate limit (%v < %v) reached on file (%v); entering 1s cooloff period.\n",
tail.LimitRate, tail.LimitRate,
rate, rate,
tail.Filename) tail.Filename)