diff --git a/lib/workers/branch/index.js b/lib/workers/branch/index.js index 693d6c4df711b30368f74cf26d734b4652d284c5..4b91d0fa98cd36b5fc3240be95a17e0af17d692f 100644 --- a/lib/workers/branch/index.js +++ b/lib/workers/branch/index.js @@ -136,7 +136,6 @@ async function processBranch(branchConfig) { Object.assign(config, await getUpdatedPackageFiles(config)); if (config.updatedPackageFiles && config.updatedPackageFiles.length) { logger.debug( - { updatedPackageFiles: config.updatedPackageFiles }, `Updated ${config.updatedPackageFiles.length} package files` ); } else { diff --git a/lib/workers/branch/lock-files.js b/lib/workers/branch/lock-files.js index 007439e1940cb22d4aa5059c7da4bfa385690d08..133139acf097f46fde09b6f49190d40babbef07a 100644 --- a/lib/workers/branch/lock-files.js +++ b/lib/workers/branch/lock-files.js @@ -199,12 +199,16 @@ async function writeExistingFiles(config) { const npmFiles = config.packageFiles.filter(p => p.packageFile.endsWith('package.json') ); + logger.debug( + { packageFiles: npmFiles.map(n => n.packageFile) }, + 'Writing package.json files' + ); for (const packageFile of npmFiles) { const basedir = upath.join( config.tmpDir.path, path.dirname(packageFile.packageFile) ); - logger.debug(`Writing package.json to ${basedir}`); + logger.trace(`Writing package.json to ${basedir}`); // Massage the file to eliminate yarn errors const massagedFile = { ...packageFile.content }; if (massagedFile.name) { @@ -283,7 +287,7 @@ async function writeExistingFiles(config) { packageLock ); } else { - logger.debug(`Removing ${basedir}/package-lock.json`); + logger.trace(`Removing ${basedir}/package-lock.json`); await fs.remove(upath.join(basedir, 'package-lock.json')); } // istanbul ignore if @@ -305,7 +309,7 @@ async function writeExistingFiles(config) { const yarnLock = await platform.getFile(packageFile.yarnLock); await fs.outputFile(upath.join(basedir, 'yarn.lock'), yarnLock); } else { - logger.debug(`Removing ${basedir}/yarn.lock`); + logger.trace(`Removing ${basedir}/yarn.lock`); await fs.remove(upath.join(basedir, 'yarn.lock')); } // TODO: Update the below with this once https://github.com/pnpm/pnpm/issues/992 is fixed