Skip to content

Commit

Permalink
kvflowcontrolpb: fix admitted response redaction
Browse files Browse the repository at this point in the history
Strings are not redaction-safe by default. Mark Msg.String() as safe.

Epic: none
Release note: none
  • Loading branch information
pav-kv committed Dec 19, 2024
1 parent 6febaab commit 4e2143b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ func (a AdmittedResponseForRange) String() string {
}

func (a AdmittedResponseForRange) SafeFormat(w redact.SafePrinter, _ rune) {
w.Printf("admitted-response (s%s r%s %s)", a.LeaderStoreID, a.RangeID, a.Msg.String())
w.Printf("admitted-response (s%s r%s %s)", a.LeaderStoreID, a.RangeID,
redact.SafeString(a.Msg.String()))
}

func (a AdmittedState) String() string {
Expand Down

0 comments on commit 4e2143b

Please sign in to comment.