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