Skip to content
Snippets Groups Projects
Commit f71ee0ef authored by Rhys Arkins's avatar Rhys Arkins
Browse files

refactor: lower debugging

parent 4eaf3f82
No related branches found
Tags 19.15.5
No related merge requests found
...@@ -25,12 +25,12 @@ function getRangeStrategy(config) { ...@@ -25,12 +25,12 @@ function getRangeStrategy(config) {
} }
if (depType === 'devDependencies') { if (depType === 'devDependencies') {
// Always pin devDependencies // Always pin devDependencies
logger.debug({ dependency: depName }, 'Pinning devDependency'); logger.trace({ dependency: depName }, 'Pinning devDependency');
return 'pin'; return 'pin';
} }
if (depType === 'dependencies' && packageJsonType === 'app') { if (depType === 'dependencies' && packageJsonType === 'app') {
// Pin dependencies if we're pretty sure it's not a browser library // Pin dependencies if we're pretty sure it's not a browser library
logger.debug({ dependency: depName }, 'Pinning app dependency'); logger.trace({ dependency: depName }, 'Pinning app dependency');
return 'pin'; return 'pin';
} }
if (depType === 'peerDependencies') { if (depType === 'peerDependencies') {
......
...@@ -5,8 +5,7 @@ module.exports = { ...@@ -5,8 +5,7 @@ module.exports = {
}; };
function extractDependencies(content) { function extractDependencies(content) {
logger.debug('terraform.extractDependencies()'); logger.trace({ content }, 'terraform.extractDependencies()');
logger.trace({ content });
if (!content.includes('module "')) { if (!content.includes('module "')) {
return null; return null;
} }
......
...@@ -32,7 +32,10 @@ async function getUpdatedPackageFiles(config) { ...@@ -32,7 +32,10 @@ async function getUpdatedPackageFiles(config) {
parentBranch: undefined, parentBranch: undefined,
}); });
} }
logger.debug({ existingContent, upgrade }, 'Error updating file'); logger.debug(
{ existingContent, config: upgrade },
'Error updating file'
);
throw new Error('update-failure'); throw new Error('update-failure');
} }
if (newContent !== existingContent) { if (newContent !== existingContent) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment