Skip to content

Commit a9eef55

Browse files
committed
fix logs
1 parent a6be547 commit a9eef55

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

packages/bitcore-wallet-service/src/lib/pushnotificationsservice.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ export class PushNotificationsService {
122122
],
123123
err => {
124124
if (err) {
125-
logger.error(err);
125+
logger.error('ERROR:' + err);
126126
}
127127
return cb(err);
128128
}
@@ -141,7 +141,7 @@ export class PushNotificationsService {
141141
this._checkShouldSendNotif(notification, (err, should) => {
142142
if (err) return cb(err);
143143

144-
logger.debug('Should send notification: ', should);
144+
logger.debug('Should send notification: ' + should);
145145
if (!should) return cb();
146146

147147
this._getRecipientsList(notification, notifType, (err, recipientsList) => {
@@ -204,11 +204,11 @@ export class PushNotificationsService {
204204
notifications,
205205
(notification, next) => {
206206
this._makeRequest(notification, (err, response) => {
207-
if (err) logger.error(err);
207+
if (err) logger.error('ERROR:' + err);
208208
if (response) {
209-
logger.debug('Request status: ', response.statusCode);
210-
logger.debug('Request message: ', response.statusMessage);
211-
logger.debug('Request body: ', response.request.body);
209+
logger.debug('Request status: ' + response.statusCode);
210+
logger.debug('Request message: ' + response.statusMessage);
211+
logger.debug('Request body: ' + response.request.body);
212212
}
213213
next();
214214
});
@@ -221,7 +221,7 @@ export class PushNotificationsService {
221221
],
222222
err => {
223223
if (err) {
224-
logger.error('An error ocurred generating notification', err);
224+
logger.error('An error ocurred generating notification:' + err);
225225
}
226226
return cb(err);
227227
}
@@ -406,7 +406,7 @@ export class PushNotificationsService {
406406
try {
407407
return Mustache.render(t, data);
408408
} catch (e) {
409-
logger.error('Could not apply data to template', e);
409+
logger.error('Could not apply data to template:' + e);
410410
error = e;
411411
}
412412
});

0 commit comments

Comments
 (0)