diff --git a/cmd/root.go b/cmd/root.go index 902b1be..65c32f3 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -290,6 +290,10 @@ func writeStartupMessage(c *cobra.Command, sched time.Time, filtering string) { until := formatDuration(time.Until(sched)) startupLog.Info("Scheduling first run: " + sched.Format("2006-01-02 15:04:05 -0700 MST")) startupLog.Info("Note that the first check will be performed in " + until) + delayDays, _ = c.PersistentFlags().GetInt("delay-days") + if delayDays > 0 { + startupLog.Infof("Container updates will be delayed until %d day(s) after image creation.", delayDays) + } } else if runOnce, _ := c.PersistentFlags().GetBool("run-once"); runOnce { startupLog.Info("Running a one time update.") } else { diff --git a/pkg/container/client.go b/pkg/container/client.go index 9e99f48..18118d0 100644 --- a/pkg/container/client.go +++ b/pkg/container/client.go @@ -372,7 +372,7 @@ func (client dockerClient) HasNewImage(ctx context.Context, container t.Containe diffDays := int(time.Since(newImageDate).Hours() / 24) if diffDays < requiredDays { - log.Infof("New image found for %s that is %d days since publication but update delayed until %d days", container.Name(), diffDays, requiredDays) + log.Infof("New image found for %s that was created %d day(s) ago but update delayed until %d day(s) after creation", container.Name(), diffDays, requiredDays) return false, currentImageID, nil } }