From de119fa05f290ad38eda1f9658d33d0e2a8bc4b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lilian=20J=C3=B3nsd=C3=B3ttir?= Date: Sun, 11 Feb 2024 17:44:54 -0800 Subject: [PATCH] improved logging --- internal/modlist/modlist.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/internal/modlist/modlist.go b/internal/modlist/modlist.go index 08043b3..78fde4d 100644 --- a/internal/modlist/modlist.go +++ b/internal/modlist/modlist.go @@ -129,6 +129,7 @@ func WriteToFile(filename string, mods *Modlist) error { } os.WriteFile(filename, data, os.FileMode(0744)) + log.Infof("Wrote modlist to file %s.", filename) return nil } @@ -146,6 +147,7 @@ func ReadFromFile(filename string) (Modlist, error) { return Modlist{}, err } + log.Infof("Read modlist from file %s.", filename) return mods, nil } @@ -165,7 +167,7 @@ func AddModsNotInList(modsdir string, mods *Modlist) error { version := groups[0][2] if !mods.HasMod(name) { - log.Printf("%s isn't enabled, adding v%s in disabled state.", name, version) + log.Info("Found %s not in modlist, adding v%s in disabled state.", name, version) mods.Mods = append(mods.Mods, Mod{ Name: name, Enabled: false,