Skip to content

Commit

Permalink
fix(logs): added new remote log entry QUEUE_POLL
Browse files Browse the repository at this point in the history
  • Loading branch information
andris9 committed Feb 8, 2024
1 parent 0a2371d commit 800b583
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/mail-queue.js
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,12 @@ class MailQueue {
returnOriginal: false
},
(err, item) => {
plugins.handler.remotelog((item && item.value && item.value.id) || null, (item && item.value && item.value.seq) || false, 'QUEUE_POLL', {
query,
match: item && item.value ? true : false,
error: err && err.message
});

if (err) {
return callback(err);
}
Expand Down

0 comments on commit 800b583

Please sign in to comment.