From bb1ae6b7c131fc537466acc6598d67cdab9d7a5e Mon Sep 17 00:00:00 2001
From: Rhys Arkins <rhys@arkins.net>
Date: Wed, 29 Apr 2020 17:02:36 +0200
Subject: [PATCH] logs: log exec docker constraint

---
 lib/util/exec/docker/index.ts | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/lib/util/exec/docker/index.ts b/lib/util/exec/docker/index.ts
index 8ef7677e3b..37326e9aed 100644
--- a/lib/util/exec/docker/index.ts
+++ b/lib/util/exec/docker/index.ts
@@ -205,7 +205,14 @@ export async function generateDockerCommand(
   if (options.tag) {
     tag = options.tag;
   } else if (tagConstraint) {
-    tag = await getDockerTag(image, tagConstraint, tagScheme || 'semver');
+    const versioning = tagScheme || 'semver';
+    tag = await getDockerTag(image, tagConstraint, versioning);
+    logger.debug(
+      { image, tagConstraint, versioning, tag },
+      'Resolved tag constraint'
+    );
+  } else {
+    logger.debug({ image }, 'No tag or tagConstraint specified');
   }
 
   const taggedImage = tag ? `${image}:${tag}` : `${image}`;
-- 
GitLab