]> git.ipfire.org Git - thirdparty/suricata.git/commit
log-pcap: one time errors on file open 9088/head
authorJason Ish <jason.ish@oisf.net>
Tue, 27 Jun 2023 16:52:39 +0000 (10:52 -0600)
committerJason Ish <jason.ish@oisf.net>
Tue, 27 Jun 2023 16:55:05 +0000 (10:55 -0600)
commitd2a5a55e0a99dee21a2a148647397bc02831ed78
tree1623c039162b31ecd1e977885e120554f420020e
parentbf589f081287b71849658c6325fc50d209c60d20
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.
src/log-pcap.c