logging clean up

This commit is contained in:
bui 2023-10-27 16:10:46 +02:00
parent d136cc4734
commit 2e0b9683f3

View file

@ -89,11 +89,7 @@ func LoadCollection(collection string) (WaapCollection, error) {
rule.version = hubWafRuleItem.Version
log.Infof("Adding %s to waap rules", rule.Name)
// if rule.Debug {
// log.Infof("Enabling debug for collection %s", rule.Name)
// //SetRuleDebug(rule.ID, true)
// }
waapRules[rule.Name] = rule
}
@ -108,8 +104,6 @@ func LoadCollection(collection string) (WaapCollection, error) {
return WaapCollection{}, fmt.Errorf("no waap rules found for collection %s", collection)
}
log.Infof("Found rule collection %s with %+v", loadedRule.Name, loadedRule)
waapCol := WaapCollection{
collectionName: loadedRule.Name,
}