From f3db0eb68a8b9a5ea305b44baf33fde6d93535ea Mon Sep 17 00:00:00 2001
From: Rhys Arkins <rhys@arkins.net>
Date: Fri, 19 Jul 2019 07:13:04 +0200
Subject: [PATCH] logs: maven log unknown value

---
 lib/manager/maven/update.js | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/lib/manager/maven/update.js b/lib/manager/maven/update.js
index 70e55f7ae1..05dddbf6dd 100644
--- a/lib/manager/maven/update.js
+++ b/lib/manager/maven/update.js
@@ -1,10 +1,12 @@
+const { logger } = require('../../logger');
+
 module.exports = {
   updateAtPosition,
   updateDependency,
 };
 
 function updateAtPosition(fileContent, upgrade, endingAnchor = '"') {
-  const { currentValue, newValue, fileReplacePosition } = upgrade;
+  const { depName, currentValue, newValue, fileReplacePosition } = upgrade;
   const leftPart = fileContent.slice(0, fileReplacePosition);
   const rightPart = fileContent.slice(fileReplacePosition);
   const versionClosePosition = rightPart.indexOf(endingAnchor);
@@ -18,6 +20,7 @@ function updateAtPosition(fileContent, upgrade, endingAnchor = '"') {
     const replacedPart = versionPart.replace(currentValue, newValue);
     return leftPart + replacedPart + restPart;
   }
+  logger.debug({ depName, version, currentValue, newValue }, 'Unknown value');
   return null;
 }
 
-- 
GitLab