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
No known key found for this signature in database
GPG Key ID: E6DFB08CE8B11277
3 changed files with 6 additions and 6 deletions

@ -1 +1 @@
Subproject commit 54e9a6ec017c687c8fad1f347a263a7b259f8525 Subproject commit da027ab52f9cf14401dd92e34e6683d183bdb3b4

View File

@ -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) {

@ -1 +1 @@
Subproject commit a9c58a25771493ac2abadffbfd5dce1213d5db93 Subproject commit add8f637703ac2c069f1b650164b70cd35675228