From 8188bd391b4f571da474d317783e9b60f4661d2e Mon Sep 17 00:00:00 2001 From: restitux Date: Thu, 4 May 2023 19:16:17 -0600 Subject: [PATCH] Add debug print to new ref value codepath in polling logic --- poll/poll.go | 1 + 1 file changed, 1 insertion(+) diff --git a/poll/poll.go b/poll/poll.go index 5e1f30c..bec9008 100644 --- a/poll/poll.go +++ b/poll/poll.go @@ -80,6 +80,7 @@ func pollJob(ctx context.Context, pipeline database.Pipeline, pipelineConf confi prevRef, ok := prevRefs[branch.Name().String()] if ok { if branch.Hash().String() != prevRef { + log.Debugf("Branch %v in repo %v (id: %v) has hash %v, which does not match the previously seen hash of %v", branch.Name().String(), pipeline.Name, pipeline.Id, branch.Hash().String(), prevRef) log.Debugf("Queuing job for branch %v in repo %v (id: %v) with hash %v", branch.Name().String(), pipeline.Name, pipeline.Id, branch.Hash().String()) prevRefs[branch.Name().String()] = branch.Hash().String() refsToRunFor = append(refsToRunFor, branch.Name().String())