Browse Source

JSON stringify objects before logging them

Because Eclipse/Wild Web Developer messes them up
better-receipts-dm
Andrew Ferrazzutti 6 days ago
parent
commit
0d849cf2bb
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      puppet/src/puppet.js

+ 2
- 2
puppet/src/puppet.js 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}
}


Loading…
Cancel
Save