forked from fair/matrix-puppeteer-line
JSON stringify objects before logging them
Because Eclipse/Wild Web Developer messes them up
This commit is contained in:
parent
e37a7c41bf
commit
0d849cf2bb
|
@ -409,7 +409,7 @@ export default class MessagesPuppeteer {
|
||||||
this.mostRecentMessages.set(chatID, messageID)
|
this.mostRecentMessages.set(chatID, messageID)
|
||||||
}
|
}
|
||||||
this.log("Updated most recent message ID map:")
|
this.log("Updated most recent message ID map:")
|
||||||
this.log(this.mostRecentMessages)
|
this.log(JSON.stringify(this.mostRecentMessages))
|
||||||
}
|
}
|
||||||
|
|
||||||
async readImage(imageUrl) {
|
async readImage(imageUrl) {
|
||||||
|
@ -540,7 +540,7 @@ export default class MessagesPuppeteer {
|
||||||
|
|
||||||
this.log("Found participants:")
|
this.log("Found participants:")
|
||||||
for (const participant of participants) {
|
for (const participant of participants) {
|
||||||
this.log(participant)
|
this.log(JSON.stringify(participant))
|
||||||
}
|
}
|
||||||
return {participants, ...chatListInfo}
|
return {participants, ...chatListInfo}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue