Previously, the network sniffer would not return once it logged an error for reporting to the mapper. This has no adverse effect, but the log that was produced was confusing, as it would log both an error and success:
{"error":"Post \"http://otterize-network-mapper:9090/query\": dial tcp 10.96.2.146:9090: i/o timeout","level":"error","msg":"Failed to report capture results","time":"2023-12-10T23:52:25Z"} │
{"level":"info","msg":"Reported captured requests of 1 clients to Mapper","time":"2023-12-10T23:52:25Z"}
Description
Previously, the network sniffer would not
return
once it logged an error for reporting to the mapper. This has no adverse effect, but the log that was produced was confusing, as it would log both an error and success:This PR fixes that.