mirror of
https://github.com/containrrr/watchtower.git
synced 2025-12-13 21:56:38 +01:00
fix: remove logging of credentials (#1534)
This commit is contained in:
parent
4d661bf63b
commit
cfcbcac8b0
4 changed files with 19 additions and 12 deletions
|
|
@ -91,7 +91,8 @@ func GetBearerHeader(challenge string, img string, registryAuth string) (string,
|
|||
|
||||
if registryAuth != "" {
|
||||
logrus.Debug("Credentials found.")
|
||||
logrus.Tracef("Credentials: %v", registryAuth)
|
||||
// CREDENTIAL: Uncomment to log registry credentials
|
||||
// logrus.Tracef("Credentials: %v", registryAuth)
|
||||
r.Header.Add("Authorization", fmt.Sprintf("Basic %s", registryAuth))
|
||||
} else {
|
||||
logrus.Debug("No credentials found.")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue