Handle initial zero value of lastError.
Also reduce logging to once every minute.
This commit is contained in:
parent
d5761fab94
commit
62b8382921
@ -65,7 +65,7 @@ func (c *containerData) Stop() error {
|
||||
}
|
||||
|
||||
func (c *containerData) allowErrorLogging() bool {
|
||||
if !c.lastErrorTime.IsZero() && time.Since(c.lastErrorTime) > time.Hour {
|
||||
if time.Since(c.lastErrorTime) > time.Minute {
|
||||
c.lastErrorTime = time.Now()
|
||||
return true
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user