mirror of
https://github.com/Theodor-Springmann-Stiftung/kgpz_web.git
synced 2025-10-29 09:05:30 +00:00
Improved logs for successful parses
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user