]> git.ipfire.org Git - thirdparty/suricata.git/commit
log-pcap: one time errors on file open
authorJason Ish <jason.ish@oisf.net>
Tue, 27 Jun 2023 16:52:39 +0000 (10:52 -0600)
committerJason Ish <jason.ish@oisf.net>
Sat, 1 Jul 2023 14:55:41 +0000 (08:55 -0600)
commit208d8e7a1f686393e83ed7d489446899cbd64663
tree357e17beda6a9098381af3c6a92a0a6479737378
parentee0c14a9456758f5f52b808e12bd6e1cfcf028c6
log-pcap: one time errors on file open

If compression was not enabled, the open error was actually suppressed
by default by only being logged at info level, however with
compression it was logged as an error. As opening is retried as long
as it fails to open, make both log as error but wrap in a flag so the
error is logged once until success.

(cherry picked from commit d2a5a55e0a99dee21a2a148647397bc02831ed78)
src/log-pcap.c