Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
paulwe committed Oct 2, 2023
1 parent f3640b1 commit 5b1807b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions logger/proto.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,9 +155,9 @@ func marshalProtoField(k string, f protoreflect.FieldDescriptor, v protoreflect.
func marshalProtoBytes(b []byte) string {
n := len(b)
if n > 64 {
n = 64
b = b[:64]
}
s := base64.RawStdEncoding.EncodeToString(b[:n])
s := base64.RawStdEncoding.EncodeToString(b)
switch {
case n <= 64:
return s
Expand Down

0 comments on commit 5b1807b

Please sign in to comment.