feat(aa-log): only clean a few log keys, resolve more variables.

fix #382
This commit is contained in:
Alexandre Pujol 2024-06-19 23:39:23 +01:00
parent 018073638b
commit 3b82cc36ba
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
3 changed files with 41 additions and 20 deletions

View file

@ -104,7 +104,8 @@ func GetJournalctlLogs(path string, useFile bool) (io.Reader, error) {
var res strings.Builder
for _, log := range logs {
res.WriteString(log.Message + "\n")
res.WriteString(log.Message)
res.WriteString("\n")
}
return strings.NewReader(res.String()), nil
}