Added --trace flag and new log.Trace() lines for sensitive information (#541)

This commit is contained in:
Sebastiaan Tammer 2020-05-11 06:09:52 +02:00 committed by GitHub
parent 4f47851263
commit 7052346570
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 25 additions and 4 deletions

View file

@ -84,6 +84,12 @@ func RegisterSystemFlags(rootCmd *cobra.Command) {
viper.GetBool("WATCHTOWER_DEBUG"),
"enable debug mode with verbose logging")
flags.BoolP(
"trace",
"",
viper.GetBool("WATCHTOWER_TRACE"),
"enable trace mode with very verbose logging - caution, exposes credentials")
flags.BoolP(
"monitor-only",
"m",