ModSecurity icon indicating copy to clipboard operation
ModSecurity copied to clipboard

Don't spray XML parser errors to stderr

Open erkia opened this issue 2 years ago • 2 comments

Currently, all XML parser errors are written to stderr, which in case of Apache means that the messages end up randomly in error_log, unformatted.

This pull request adds custom XML error handling function, which just discards all the messages at the moment.

erkia avatar Jul 17 '23 08:07 erkia

Hello @erkia ,

Could you provide a couple of examples of such messages? Ideally include xml bodies to reproduce them and whether any special configuration is required to reproduce the issue (e.g. higher LogLevel in the apache config).

martinhsv avatar Oct 17 '23 19:10 martinhsv

Non-standard messages in error log are not clean, but no message at all isn't good either. We should use msr_log(msr, ...), no?

marcstern avatar Feb 01 '24 11:02 marcstern