Handle initial zero value of lastError.

Also reduce logging to once every minute.
This commit is contained in:
Victor Marmol 2015-01-08 10:31:32 -08:00
parent d5761fab94
commit 62b8382921

View File

@ -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
}