diff --git a/lib/manager/maven/update.js b/lib/manager/maven/update.js index 70e55f7ae1ec28314b2078bebe5e1e00c917ef24..05dddbf6dd19780c7f4f860ea426865a8b6b8d4d 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; }