summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/config.go b/config.go
index 2691cd8..702daa9 100644
--- a/config.go
+++ b/config.go
@@ -35,14 +35,12 @@ func (all *Repos) ConfigSave() error {
data, err = all.Marshal()
if err == nil {
// validate & sanitize strings worked
- log.Info("gitpb.ConfigSave() repos.Marshal() worked len", len(all.Repos), "repos")
configWrite("repos.pb", data)
return nil
}
}
return err
}
- log.Info("gitpb.ConfigSave() repos.Marshal() worked len", len(all.Repos), "repos")
configWrite("repos.pb", data)
return nil
}
@@ -151,6 +149,7 @@ func loadFile(fullname string) ([]byte, error) {
func configWrite(filename string, data []byte) error {
fullname := filepath.Join(os.Getenv("FORGE_GOSRC"), filename)
+ log.Infof("%s your repos have changed state. cached state. (%d) bytes\n", fullname, len(data))
cfgfile, err := os.OpenFile(fullname, os.O_RDWR|os.O_CREATE|os.O_TRUNC, 0644)
defer cfgfile.Close()
if err != nil {