From c4d7ab54a6b8f14fbc8e23d7ccea2d3012bc774e Mon Sep 17 00:00:00 2001 From: Ned Wright Date: Tue, 26 Dec 2023 20:46:23 +0000 Subject: [PATCH] Logging changes --- components/security_apps/waap/waap_clib/Waf2Engine.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/security_apps/waap/waap_clib/Waf2Engine.cc b/components/security_apps/waap/waap_clib/Waf2Engine.cc index 8922fc0..188a264 100755 --- a/components/security_apps/waap/waap_clib/Waf2Engine.cc +++ b/components/security_apps/waap/waap_clib/Waf2Engine.cc @@ -1741,7 +1741,7 @@ Waf2Transaction::sendLog() static int cur_grace_logs = 0; bool grace_period = is_hybrid_mode && cur_grace_logs < max_grace_logs; - bool send_extended_log = grace_period || shouldSendExtendedLog(triggerLog); + bool send_extended_log = shouldSendExtendedLog(triggerLog); if (grace_period) { dbgTrace(D_WAAP) << "Waf2Transaction::sendLog: current grace log index: " @@ -2339,7 +2339,7 @@ bool Waf2Transaction::shouldSendExtendedLog(const std::shared_ptrgetThreatLevel()); - if (trigger_log->extendLoggingMinSeverity == "Critical") + if (trigger_log->extendLoggingMinSeverity == "Critical" || trigger_log->extendLoggingMinSeverity == "critical") { if (severity == ReportIS::Severity::CRITICAL) { @@ -2349,7 +2349,7 @@ bool Waf2Transaction::shouldSendExtendedLog(const std::shared_ptrextendLoggingMinSeverity == "High") + else if (trigger_log->extendLoggingMinSeverity == "High" || trigger_log->extendLoggingMinSeverity == "high") { if (severity == ReportIS::Severity::CRITICAL || severity == ReportIS::Severity::HIGH) {