Changes auditlog type to serial by default

This commit is contained in:
Felipe Zimmerle
2017-08-20 17:32:44 -03:00
parent bf281eb4df
commit fff5a57656
3 changed files with 6 additions and 6 deletions

View File

@@ -204,17 +204,17 @@ bool AuditLog::setType(AuditLogType audit_type) {
bool AuditLog::init(std::string *error) {
if (m_type == SerialAuditLogType) {
m_writer = new audit_log::writer::Serial(this);
if (m_type == ParallelAuditLogType) {
m_writer = new audit_log::writer::Parallel(this);
} else if (m_type == HttpsAuditLogType) {
m_writer = new audit_log::writer::Https(this);
} else {
/*
* if (m_type == ParallelAuditLogType
* if (m_type == SerialAuditLogType
* || 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) {