Skip to content

Commit

Permalink
Don't write full request text in client logs.
Browse files Browse the repository at this point in the history
  • Loading branch information
creachadair committed Mar 22, 2023
1 parent 4a7fee4 commit b056558
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client.go
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ func (c *Client) send(ctx context.Context, reqs jmessages) ([]*Response, error)
if c.err != nil {
return nil, c.err
}
c.log("Outgoing batch: %s", string(b))
c.log("Outgoing batch: count=%d, bytes=%d", len(reqs), len(b))
if err := c.ch.Send(b); err != nil {
return nil, err
}
Expand Down

0 comments on commit b056558

Please sign in to comment.