Language tweaks for clarity

This commit is contained in:
Peter Wilhelm 2023-12-17 20:42:51 -06:00
parent 83cf4c2856
commit 6bd125d137
2 changed files with 5 additions and 1 deletions

View file

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

View file

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