DebugLogs are now being redirected to the correct files

This commit is contained in:
Felipe Zimmerle
2015-08-27 01:27:34 -03:00
parent 01542e28c3
commit 24b7d72666
14 changed files with 330 additions and 177 deletions

View File

@@ -191,7 +191,7 @@ end:
modsec_assay->processLogging(r.status);
CustomDebugLog *d = reinterpret_cast<CustomDebugLog *>
(modsec_rules->debugLog);
(modsec_rules->m_debugLog);
if (d != NULL) {
if (!d->contains(t->debug_log)) {
@@ -220,7 +220,7 @@ after_debug_log:
delete modsec_assay;
delete modsec_rules;
delete modsec;
delete debug_log;
/* delete debug_log; */
res->insert(res->end(), r.begin(), r.end());
}