Skip to content

Commit 726ab72

Browse files
committed
Log improvements
1 parent 9a4056f commit 726ab72

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

pkg/deployment/resources/secret_hashes.go

+5-2
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,10 @@ func (r *Resources) ValidateSecretHashes() error {
7575
}
7676
if hash != expectedHash {
7777
// Oops, hash has changed
78-
log.Error().Msg("Secret has changed. You must revert it to the original value!")
78+
log.Debug().
79+
Str("expected-hash", expectedHash).
80+
Str("new-hash", hash).
81+
Msg("Secret has changed.")
7982
// This is not good, return false so SecretsChanged condition will be set.
8083
return false, nil
8184
}
@@ -139,7 +142,7 @@ func (r *Resources) ValidateSecretHashes() error {
139142
} else {
140143
// All good, we van remove the SecretsChanged condition
141144
if status.Conditions.Remove(api.ConditionTypeSecretsChanged) {
142-
log.Warn().Msg("Resetting SecretsChanged condition")
145+
log.Info().Msg("Resetting SecretsChanged condition")
143146
if err := r.context.UpdateStatus(status); err != nil {
144147
log.Error().Err(err).Msg("Failed to save SecretsChanged condition")
145148
return maskAny(err)

0 commit comments

Comments
 (0)