Skip to content

Commit

Permalink
Say what the min redaction length is when we don't react stuff becaus…
Browse files Browse the repository at this point in the history
…e it's too short
  • Loading branch information
moskyb committed Mar 23, 2022
1 parent f8532ee commit a88680b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion redaction/redactor.go
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ func GetKeyValuesToRedact(logger shell.Logger, patterns []string, environment ma

if matched {
if len(varValue) < RedactLengthMin {
logger.Warningf("Value of %s below minimum length and will not be redacted", varName)
logger.Warningf("Value of %s below minimum length (%d bytes) and will not be redacted", varName, RedactLengthMin)
} else {
valuesToRedact[varName] = varValue
}
Expand Down

0 comments on commit a88680b

Please sign in to comment.