Use structured log
This commit is contained in:
parent
5c8f734e67
commit
0ce56eed87
2 changed files with 9 additions and 13 deletions
|
@ -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…
Add table
Reference in a new issue