atc: Adds more logs to check-resource code path
concourse/concourse#1954
@@ -36,6 +36,11 @@ func (p *pipeline) AcquireResourceCheckingLockWithIntervalCheck(
}
if !intervalUpdated {
+ logger.Debug("failed-to-update-interval", lager.Data{
+ "interval": interval,
+ "immediate": immediate,
+ })
+
lockErr := lock.Release()
if lockErr != nil {
logger.Fatal("failed-to-release-lock", lockErr)
@@ -75,6 +80,11 @@ func (p *pipeline) AcquireResourceTypeCheckingLockWithIntervalCheck(
}
if !intervalUpdated {
+ logger.Debug("failed-to-update-interval", lager.Data{
+ "interval": interval,
+ "immediate": immediate,
+ })
+
lockErr := lock.Release()
if lockErr != nil {
logger.Fatal("failed-to-release-lock", lockErr)
