mirror of
https://github.com/containrrr/watchtower.git
synced 2025-09-21 21:30:48 +02:00
Language tweaks for clarity
This commit is contained in:
parent
83cf4c2856
commit
6bd125d137
2 changed files with 5 additions and 1 deletions
|
@ -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 {
|
||||
|
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue