fix log messages

This commit is contained in:
2026-05-29 08:51:51 -06:00
parent 9e71c4e828
commit 9aa79753ff
2 changed files with 7 additions and 3 deletions
+1 -1
View File
@@ -65,7 +65,7 @@ func (c *Cache) Clean() error {
rsize += f.size rsize += f.size
i++ i++
} }
slog.Info("evicted aged out pkgs", "num", i, "size", humanize.Bytes(uint64(rsize))) slog.Info("evicted pkgs over size limit", "num", i, "size", humanize.Bytes(uint64(rsize)))
return nil return nil
} }
+6 -2
View File
@@ -86,8 +86,12 @@ func (r *RepoSync) Sync() error {
} }
slog.Info("finished pkg update") slog.Info("finished pkg update")
// call cache cleanup
err = r.c.Clean()
} }
// call cache cleanup
if err := r.c.Clean(); err != nil {
slog.Error("clean cache failed", "err", err)
return err
}
return nil return nil
} }