mirror of
https://github.com/containrrr/watchtower.git
synced 2025-09-21 21:30:48 +02:00
* feat: custom user agent (#990)
* fix: move build meta to own package this allows it to be referenced from other packages without causing a cyclic dependency * feat: custom user agent
This commit is contained in:
parent
b196629d04
commit
f508c92ae0
6 changed files with 59 additions and 12 deletions
|
@ -1,6 +1,7 @@
|
|||
package cmd
|
||||
|
||||
import (
|
||||
"github.com/containrrr/watchtower/internal/meta"
|
||||
"math"
|
||||
"os"
|
||||
"os/signal"
|
||||
|
@ -39,7 +40,6 @@ var (
|
|||
rollingRestart bool
|
||||
scope string
|
||||
// Set on build using ldflags
|
||||
version = "v0.0.0-unknown"
|
||||
)
|
||||
|
||||
var rootCmd = NewRootCommand()
|
||||
|
@ -273,7 +273,7 @@ func writeStartupMessage(c *cobra.Command, sched time.Time, filtering string) {
|
|||
notifs = "Using notifications: " + notifList
|
||||
}
|
||||
|
||||
log.Info("Watchtower ", version, "\n", notifs, "\n", filtering, "\n", schedMessage)
|
||||
log.Info("Watchtower ", meta.Version, "\n", notifs, "\n", filtering, "\n", schedMessage)
|
||||
if log.IsLevelEnabled(log.TraceLevel) {
|
||||
log.Warn("trace level enabled: log will include sensitive information as credentials and tokens")
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue