feat(aa-log): format rule before print.

This commit is contained in:
Alexandre Pujol 2023-10-01 19:00:39 +01:00
parent 352c444ae6
commit b99bb8da46
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
7 changed files with 73 additions and 34 deletions

View file

@ -68,8 +68,9 @@ func aaLog(logger string, path string, profile string) error {
if rules {
profiles := aaLogs.ParseToProfiles()
for _, profile := range profiles {
profile.Sort()
profile.MergeRules()
profile.Sort()
profile.Format()
fmt.Print(profile.String() + "\n")
}
} else {