Use structured log

pull/1/head
Daniel Gasienica 7 years ago
parent 5c8f734e67
commit 0ce56eed87

@ -860,14 +860,12 @@
return Promise.resolve();
}
console.log(
'Updating expireTimer for conversation',
this.idForLogging(),
'to',
console.log("Update conversation 'expireTimer'", {
id: this.idForLogging(),
expireTimer,
'via',
source
);
source,
});
source = source || textsecure.storage.user.getNumber();
const timestamp = receivedAt || Date.now();

@ -632,13 +632,11 @@
const shouldLogExpireTimerChange =
message.isExpirationTimerUpdate() || expireTimer;
if (shouldLogExpireTimerChange) {
console.log(
'Updating expireTimer for conversation',
conversation.idForLogging(),
'to',
console.log("Update conversation 'expireTimer'", {
id: conversation.idForLogging(),
expireTimer,
'via `handleDataMessage`'
);
source: 'handleDataMessage',
});
}
if (!message.isEndSession() && !message.isGroupUpdate()) {

Loading…
Cancel
Save