From c53049293b2e80374296adaae3dd6947a834e80a Mon Sep 17 00:00:00 2001 From: Alexandre Pujol Date: Tue, 25 Apr 2023 23:23:09 +0100 Subject: [PATCH] feat(aa-log): use os.ReadFile instead of ioutil.ReadFile --- pkg/logs/loggers.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pkg/logs/loggers.go b/pkg/logs/loggers.go index d304c357..76504e20 100644 --- a/pkg/logs/loggers.go +++ b/pkg/logs/loggers.go @@ -8,7 +8,6 @@ import ( "bytes" "encoding/json" "io" - "io/ioutil" "os" "os/exec" "path/filepath" @@ -37,8 +36,7 @@ func GetJournalctlLogs(path string, useFile bool) (io.Reader, error) { var value string if useFile { - // content, err := os.ReadFile(filepath.Clean(path)) - content, err := ioutil.ReadFile(filepath.Clean(path)) + content, err := os.ReadFile(filepath.Clean(path)) if err != nil { return nil, err }