Added logging framework.
This commit is contained in:
parent
ad3f075d93
commit
a82b66c637
12 changed files with 171 additions and 29 deletions
server/jobs
|
@ -1,11 +1,11 @@
|
|||
'use strict';
|
||||
|
||||
angular.module('ffffng').factory('MailQueueJob', function (MailService) {
|
||||
angular.module('ffffng').factory('MailQueueJob', function (MailService, Logger) {
|
||||
return {
|
||||
run: function () {
|
||||
MailService.sendPendingMails(function (err) {
|
||||
if (err) {
|
||||
console.error(err);
|
||||
Logger.tag('mail', 'queue').error('Error sending pending mails:', err);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue