mirror of
https://github.com/containrrr/watchtower.git
synced 2025-12-13 21:56:38 +01:00
Added --trace flag and new log.Trace() lines for sensitive information (#541)
This commit is contained in:
parent
4f47851263
commit
7052346570
6 changed files with 25 additions and 4 deletions
|
|
@ -64,6 +64,9 @@ func PreRun(cmd *cobra.Command, args []string) {
|
|||
if enabled, _ := f.GetBool("debug"); enabled {
|
||||
log.SetLevel(log.DebugLevel)
|
||||
}
|
||||
if enabled, _ := f.GetBool("trace"); enabled {
|
||||
log.SetLevel(log.TraceLevel)
|
||||
}
|
||||
|
||||
pollingSet := f.Changed("interval")
|
||||
schedule, _ := f.GetString("schedule")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue