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,