Skip to content

Commit

Permalink
tetragon: fix redaction filters log message
Browse files Browse the repository at this point in the history
Fix redaction filters log message to no longer log that an error occurred on success.

Signed-off-by: William Findlay <[email protected]>
  • Loading branch information
willfindlay committed Apr 11, 2024
1 parent 2762272 commit 829494b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/tetragon/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ func setRedactionFilters() error {
var err error
redactionFilters := viper.GetString(option.KeyRedactionFilters)
fieldfilters.RedactionFilters, err = fieldfilters.ParseRedactionFilterList(redactionFilters)
if err != nil {
if err == nil {
log.WithFields(logrus.Fields{"redactionFilters": redactionFilters}).Info("Configured redaction filters")
} else {
log.WithError(err).Error("Error configuring redaction filters")
Expand Down

0 comments on commit 829494b

Please sign in to comment.