mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 13:56:01 +03:00
Remove old commented-out re: audit log, relevant
This commit is contained in:
parent
ef1b8d8d98
commit
cb80837e6a
@ -241,21 +241,6 @@ bool AuditLog::init(std::string *error) {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Sanity check */
|
|
||||||
if (m_status == RelevantOnlyAuditLogStatus) {
|
|
||||||
if (m_relevant.empty()) {
|
|
||||||
/*
|
|
||||||
error->assign("m_relevant cannot be null while status is set to " \
|
|
||||||
"RelevantOnly");
|
|
||||||
return false;
|
|
||||||
*/
|
|
||||||
// FIXME: this should be a warning. There is not point to
|
|
||||||
// have the logs on relevant only if nothing is relevant.
|
|
||||||
//
|
|
||||||
// Not returning an error to keep the compatibility with v2.
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (m_writer) {
|
if (m_writer) {
|
||||||
delete m_writer;
|
delete m_writer;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user