diff --git a/util.go b/util.go index 3f2c2ac..52b0e2e 100644 --- a/util.go +++ b/util.go @@ -103,7 +103,7 @@ func GetRecentLogs(path string, n int) []string { //fmt.Println(nt) for i := 1; i <= nt; { if PathExists(path + data.Format("2006-01-02") + ".log") { - paths = append(paths, path+data.Format("2006-01-02")+".log") + paths = append(paths, data.Format("2006-01-02")+".log") i++ } data = data.Add(d)