chore: various cosmetic changes.

This commit is contained in:
Alexandre Pujol 2023-09-01 19:26:52 +01:00
parent 256d4abde8
commit aea0034fcc
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
16 changed files with 35 additions and 32 deletions

View file

@ -40,7 +40,7 @@ var (
systemd bool
)
func aaLog(logger string, path string, profile string, rules bool) error {
func aaLog(logger string, path string, profile string) error {
var err error
var file io.Reader
@ -97,8 +97,8 @@ func main() {
logger = "systemd"
}
logfile := logs.GetLogFile(path)
err := aaLog(logger, logfile, profile, rules)
path = logs.SelectLogFile(path)
err := aaLog(logger, path, profile)
if err != nil {
fmt.Println(err)
os.Exit(1)