spoa-modsecurity icon indicating copy to clipboard operation
spoa-modsecurity copied to clipboard

Config failure reason not logged

Open mac-chaffee opened this issue 2 years ago • 0 comments

Looks like the log message for when modsecurity fails to load the configuration is not being included in the error message:

https://github.com/haproxy/spoa-modsecurity/blob/3c895f3e7dd291dba19d57ba054b277e6fb80ca4/modsec_wrapper.c#L153-L156

So if you have a syntax error in your config, you just get this log:

1670881710.648713 [00] ModSecurity load configuration failed.

mac-chaffee avatar Dec 12 '22 21:12 mac-chaffee