Merge pull request #3364 from JakubOnderka/json-logging

Simplify code for JSON audit log
This commit is contained in:
Ervin Hegedus
2025-05-11 10:54:47 +02:00
committed by GitHub
4 changed files with 94 additions and 36 deletions

View File

@@ -331,7 +331,7 @@ class RulesSetProperties {
};
static const char *ruleEngineStateString(RuleEngine i) {
static std::string ruleEngineStateString(RuleEngine i) {
switch (i) {
case DisabledRuleEngine:
return "Disabled";
@@ -342,7 +342,7 @@ class RulesSetProperties {
case PropertyNotSetRuleEngine:
return "PropertyNotSet/DetectionOnly";
}
return NULL;
return std::string{};
}