]> git.ipfire.org Git - thirdparty/suricata.git/commit
unix-socket: Avoid spurious logs on close
authorMichael Smith <msmith@mindbridge.ai>
Tue, 22 Jun 2021 02:33:47 +0000 (22:33 -0400)
committerVictor Julien <victor@inliniac.net>
Mon, 23 Aug 2021 18:27:53 +0000 (20:27 +0200)
commita64783b3e2f7f1a58050ca5f8d7f85c2a16a9c0a
tree18477a22e5fd3f25a6b4a261493673decfba2d33
parent3e81d20a71deb2a061d3f86430b88b8bdd4b7d6d
unix-socket: Avoid spurious logs on close

Avoid spurious logs when suricatasc closes connection.

Use SCLogDebug for control connection EOF, and SCLogError for an error.

As Chandan Chowdhury described in redmine 3685. This makes the logging
consistent with the older `if (client->version <= UNIX_PROTO_V1)` block
about 20 lines above, and avoids polluting the logs with
`Unix socket: lost connection with client`.
src/unix-manager.c