JSON stringify objects before logging them

Because Eclipse/Wild Web Developer messes them up
This commit is contained in:
Andrew Ferrazzutti 2021-06-10 02:52:25 -04:00
parent e37a7c41bf
commit 0d849cf2bb

View File

@ -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}
}