mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-17 06:36:13 +03:00
Disables c++11 mutex, until we have a better approach
This commit is contained in:
parent
ac2f0bfd08
commit
b325834f1e
@ -15,13 +15,13 @@
|
|||||||
|
|
||||||
#include "src/audit_log_writer_serial.h"
|
#include "src/audit_log_writer_serial.h"
|
||||||
|
|
||||||
#include <mutex>
|
// #include <mutex>
|
||||||
|
|
||||||
#include "src/audit_log.h"
|
#include "src/audit_log.h"
|
||||||
|
|
||||||
namespace ModSecurity {
|
namespace ModSecurity {
|
||||||
|
|
||||||
static std::mutex serialLoggingMutex;
|
// static std::mutex serialLoggingMutex;
|
||||||
|
|
||||||
|
|
||||||
AuditLogWriterSerial::~AuditLogWriterSerial() {
|
AuditLogWriterSerial::~AuditLogWriterSerial() {
|
||||||
@ -52,9 +52,9 @@ bool AuditLogWriterSerial::write(Assay *assay, int parts) {
|
|||||||
|
|
||||||
generateBoundary(&boundary);
|
generateBoundary(&boundary);
|
||||||
|
|
||||||
serialLoggingMutex.lock();
|
// serialLoggingMutex.lock();
|
||||||
log << assay->toOldAuditLogFormat(parts, "-" + boundary + "--");
|
log << assay->toOldAuditLogFormat(parts, "-" + boundary + "--");
|
||||||
serialLoggingMutex.unlock();
|
// serialLoggingMutex.unlock();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user