diff --git a/lib/config/migrate-validate.ts b/lib/config/migrate-validate.ts index 97433b7e923c10..91865925c8df88 100644 --- a/lib/config/migrate-validate.ts +++ b/lib/config/migrate-validate.ts @@ -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'; @@ -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, diff --git a/lib/workers/repository/init/merge.ts b/lib/workers/repository/init/merge.ts index e26570c6382cb1..54ae0f63f266d3 100644 --- a/lib/workers/repository/init/merge.ts +++ b/lib/workers/repository/init/merge.ts @@ -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