From 0d849cf2bb93b0e7acf5bad02f0d9641a7c98ecb Mon Sep 17 00:00:00 2001 From: Andrew Ferrazzutti Date: Thu, 10 Jun 2021 02:52:25 -0400 Subject: [PATCH] JSON stringify objects before logging them Because Eclipse/Wild Web Developer messes them up --- puppet/src/puppet.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/puppet/src/puppet.js b/puppet/src/puppet.js index 5750dd1..44a3f03 100644 --- a/puppet/src/puppet.js +++ b/puppet/src/puppet.js @@ -409,7 +409,7 @@ export default class MessagesPuppeteer { this.mostRecentMessages.set(chatID, messageID) } this.log("Updated most recent message ID map:") - this.log(this.mostRecentMessages) + this.log(JSON.stringify(this.mostRecentMessages)) } async readImage(imageUrl) { @@ -540,7 +540,7 @@ export default class MessagesPuppeteer { this.log("Found participants:") for (const participant of participants) { - this.log(participant) + this.log(JSON.stringify(participant)) } return {participants, ...chatListInfo} }