Skip to content

Commit

Permalink
Silent return to avoid spamming logs
Browse files Browse the repository at this point in the history
  • Loading branch information
fdurand committed Jan 3, 2025
1 parent 52fd342 commit 2c0a710
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion go/detectparser/fortigate_dhcp.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ func (s *FortiGateDhcpParser) Parse(line string) ([]ApiCall, error) {
}

if ack != "Ack" {
return nil, errors.New("Not an Ack message")
// Silent error to avoid spamming logs
return nil, nil // errors.New("Not an Ack")
}

if ip, err = sharedutils.CleanIP(ip); err != nil {
Expand Down

0 comments on commit 2c0a710

Please sign in to comment.