Skip to content

Commit

Permalink
binarylog: Don't continue after failing to marshal the proto
Browse files Browse the repository at this point in the history
  • Loading branch information
Jille committed Jul 3, 2021
1 parent dd58992 commit 98be127
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/binarylog/sink.go
Expand Up @@ -70,6 +70,7 @@ func (ws *writerSink) Write(e *pb.GrpcLogEntry) error {
b, err := proto.Marshal(e)
if err != nil {
grpclogLogger.Infof("binary logging: failed to marshal proto message: %v", err)
return err
}
hdr := make([]byte, 4)
binary.BigEndian.PutUint32(hdr, uint32(len(b)))
Expand Down

0 comments on commit 98be127

Please sign in to comment.