Use structured logs
Easier to search for static prefix and fields are named.
This commit is contained in:
parent
0ce56eed87
commit
13f1ec2e51
3 changed files with 11 additions and 8 deletions
|
@ -815,11 +815,9 @@
|
|||
},
|
||||
async onExpiredCollection(message) {
|
||||
const removeMessage = () => {
|
||||
console.log(
|
||||
'removing message',
|
||||
message.get('sent_at'),
|
||||
'from collection'
|
||||
);
|
||||
console.log('Remove expired message from message collection', {
|
||||
sentAt: message.get('sent_at'),
|
||||
});
|
||||
this.model.messageCollection.remove(message.id);
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue