From 100fc034406039ac10c5fe2b565c1a78e02d0dd3 Mon Sep 17 00:00:00 2001 From: Anton Belodedenko <2033996+ab77@users.noreply.github.com> Date: Mon, 17 Jun 2024 13:58:33 -0700 Subject: [PATCH] correct logging of the difference between source and target * Results of comparing Environments diffable target .. with source .. is `[object Object]` change-type: patch --- lib/plugins/diffable.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/plugins/diffable.js b/lib/plugins/diffable.js index 74871691..e9d54968 100644 --- a/lib/plugins/diffable.js +++ b/lib/plugins/diffable.js @@ -83,7 +83,7 @@ module.exports = class Diffable extends ErrorStash { const mergeDeep = new MergeDeep(this.log, this.github, ignorableFields) const compare = mergeDeep.compareDeep(existingRecords, filteredEntries) const results = { msg: 'Changes found', additions: compare.additions, modifications: compare.modifications, deletions: compare.deletions } - this.log.debug(`Results of comparing ${this.constructor.name} diffable target ${JSON.stringify(existingRecords)} with source ${JSON.stringify(filteredEntries)} is ${results}`) + this.log.debug(`Results of comparing ${this.constructor.name} diffable target ${JSON.stringify(existingRecords)} with source ${JSON.stringify(filteredEntries)} is ${JSON.stringify(results)}`) if (!compare.hasChanges) { this.log.debug(`There are no changes for ${this.constructor.name} for repo ${this.repo}. Skipping changes`) return Promise.resolve()