mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 19:24:29 +03:00
Changes auditlog type to serial by default
This commit is contained in:
Submodule others/libinjection updated: 54e9a6ec01...da027ab52f
@@ -204,17 +204,17 @@ bool AuditLog::setType(AuditLogType audit_type) {
|
|||||||
|
|
||||||
|
|
||||||
bool AuditLog::init(std::string *error) {
|
bool AuditLog::init(std::string *error) {
|
||||||
if (m_type == SerialAuditLogType) {
|
if (m_type == ParallelAuditLogType) {
|
||||||
m_writer = new audit_log::writer::Serial(this);
|
m_writer = new audit_log::writer::Parallel(this);
|
||||||
} else if (m_type == HttpsAuditLogType) {
|
} else if (m_type == HttpsAuditLogType) {
|
||||||
m_writer = new audit_log::writer::Https(this);
|
m_writer = new audit_log::writer::Https(this);
|
||||||
} else {
|
} else {
|
||||||
/*
|
/*
|
||||||
* if (m_type == ParallelAuditLogType
|
* if (m_type == SerialAuditLogType
|
||||||
* || m_type == NotSetAuditLogType)
|
* || m_type == NotSetAuditLogType)
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
m_writer = new audit_log::writer::Parallel(this);
|
m_writer = new audit_log::writer::Serial(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (m_status == OffAuditLogStatus || m_status == NotSetLogStatus) {
|
if (m_status == OffAuditLogStatus || m_status == NotSetLogStatus) {
|
||||||
|
Reference in New Issue
Block a user