Skip to content

Commit 2df1f1b

Browse files
committed
Skip lines that can't be parsed
1 parent cbb49ae commit 2df1f1b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: inspector/tcp.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,8 @@ func (i *TcpLinux) Parse(output string) {
129129
portString := address[len(address)-1]
130130
port, err := strconv.Atoi(portString)
131131
if err != nil {
132-
log.Fatalf("Could not parse port number in TcpLinux %s", err.Error())
132+
log.Errorf("Could not parse port number in TcpLinux %s", err.Error())
133+
continue
133134
}
134135
ports[port] = status
135136
}

0 commit comments

Comments
 (0)