Improved logs for successful parses

This commit is contained in:
Simon Martens
2025-10-02 00:31:39 +02:00
parent 6dc9c997ad
commit 92ca4b3671
2 changed files with 15 additions and 1 deletions

View File

@@ -617,7 +617,7 @@ func (k *KGPZ) Pull() {
k.fsmu.Unlock()
if changed {
logging.ObjDebug(&k.Repo, "Remote changed. Reparsing")
logging.Info("Repository updated to commit: " + k.Repo.Commit + " (reparsing data)")
if err := k.Serialize(); err != nil {
logging.Error(err, "Error parsing XML after git pull. Using mixed old/new data.")
}
@@ -636,6 +636,8 @@ func (k *KGPZ) Pull() {
k.Config.Config.GitURL,
)
}
} else {
logging.Info("Repository up to date at commit: " + k.Repo.Commit)
}
}