Skip to content

Commit 62b8382

Browse files
committed
Handle initial zero value of lastError.
Also reduce logging to once every minute.
1 parent d5761fa commit 62b8382

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

manager/container.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ func (c *containerData) Stop() error {
6565
}
6666

6767
func (c *containerData) allowErrorLogging() bool {
68-
if !c.lastErrorTime.IsZero() && time.Since(c.lastErrorTime) > time.Hour {
68+
if time.Since(c.lastErrorTime) > time.Minute {
6969
c.lastErrorTime = time.Now()
7070
return true
7171
}

0 commit comments

Comments
 (0)