0
0
Fork 0
mirror of https://github.com/renovatebot/renovate.git synced 2025-03-14 16:23:00 +00:00

chore: lighten debug logging

This commit is contained in:
Rhys Arkins 2018-03-24 06:31:01 +01:00
parent 5330788c9e
commit ee6c6bda2c
2 changed files with 7 additions and 4 deletions
lib/workers/branch

View file

@ -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 {

View file

@ -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