Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: less config logging #23308

Merged
merged 2 commits into from
Jul 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 5 additions & 1 deletion lib/config/migrate-validate.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import is from '@sindresorhus/is';
import { dequal } from 'dequal';
import { logger } from '../logger';
import * as configMassage from './massage';
import * as configMigration from './migration';
Expand All @@ -21,7 +22,10 @@ export async function migrateAndValidate(
logger.debug('No config migration necessary');
}
const massagedConfig = configMassage.massageConfig(migratedConfig);
logger.debug({ config: massagedConfig }, 'massaged config');
// log only if it's changed
if (!dequal(input, massagedConfig)) {
logger.debug({ config: massagedConfig }, 'Post-massage config');
}
const {
warnings,
errors,
Expand Down
1 change: 0 additions & 1 deletion lib/workers/repository/init/merge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,6 @@ export async function mergeRenovateConfig(
}
delete migratedConfig.errors;
delete migratedConfig.warnings;
logger.debug({ config: migratedConfig }, 'migrated config');
// TODO #7154
const repository = config.repository!;
// Decrypt before resolving in case we need npm authentication for any presets
Expand Down