Skip to content

Commit fff5a57

Browse files
author
Felipe Zimmerle
committed
Changes auditlog type to serial by default
1 parent bf281eb commit fff5a57

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

others/libinjection

Submodule libinjection updated 63 files

src/audit_log/audit_log.cc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -204,17 +204,17 @@ bool AuditLog::setType(AuditLogType audit_type) {
204204

205205

206206
bool AuditLog::init(std::string *error) {
207-
if (m_type == SerialAuditLogType) {
208-
m_writer = new audit_log::writer::Serial(this);
207+
if (m_type == ParallelAuditLogType) {
208+
m_writer = new audit_log::writer::Parallel(this);
209209
} else if (m_type == HttpsAuditLogType) {
210210
m_writer = new audit_log::writer::Https(this);
211211
} else {
212212
/*
213-
* if (m_type == ParallelAuditLogType
213+
* if (m_type == SerialAuditLogType
214214
* || m_type == NotSetAuditLogType)
215215
*
216216
*/
217-
m_writer = new audit_log::writer::Parallel(this);
217+
m_writer = new audit_log::writer::Serial(this);
218218
}
219219

220220
if (m_status == OffAuditLogStatus || m_status == NotSetLogStatus) {

0 commit comments

Comments
 (0)