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:
parent
5330788c9e
commit
ee6c6bda2c
2 changed files with 7 additions and 4 deletions
lib/workers/branch
|
@ -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 {
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue