Skip to content

Commit

Permalink
[CWS] Skip empty lines in the trace logger (#31554)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gui774ume authored Nov 28, 2024
1 parent 04a7c8c commit 301fd84
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/security/tests/trace_pipe.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,9 @@ func (t *TracePipe) ReadLine() (*TraceEvent, error) {
if err != nil {
return nil, err
}
if line == "\n" {
return nil, io.EOF
}
traceEvent, err := parseTraceLine(line)
if err != nil {
return nil, err
Expand Down

0 comments on commit 301fd84

Please sign in to comment.