Add debug print of prevRefs to polling logic

This commit is contained in:
restitux 2023-05-04 19:21:22 -06:00
parent 8188bd391b
commit 63c0f83c16
1 changed files with 4 additions and 0 deletions

View File

@ -58,6 +58,10 @@ func pollJob(ctx context.Context, pipeline database.Pipeline, pipelineConf confi
log.Errorf("Could not get pipeline refs from db: %v", err)
return
}
log.Debugf("Got pipeline hashs for repo %v (id: %v)", pipeline.Name, pipeline.Id)
for refName, hash := range prevRefs {
log.Debugf("%v: %v: %v", pipeline.Id, refName, hash)
}
repo, err := git.Clone(memory.NewStorage(), nil, &git.CloneOptions{
URL: pipeline.Url,