@@ -122,7 +122,7 @@ export class PushNotificationsService {
122
122
] ,
123
123
err => {
124
124
if ( err ) {
125
- logger . error ( err ) ;
125
+ logger . error ( 'ERROR:' + err ) ;
126
126
}
127
127
return cb ( err ) ;
128
128
}
@@ -141,7 +141,7 @@ export class PushNotificationsService {
141
141
this . _checkShouldSendNotif ( notification , ( err , should ) => {
142
142
if ( err ) return cb ( err ) ;
143
143
144
- logger . debug ( 'Should send notification: ' , should ) ;
144
+ logger . debug ( 'Should send notification: ' + should ) ;
145
145
if ( ! should ) return cb ( ) ;
146
146
147
147
this . _getRecipientsList ( notification , notifType , ( err , recipientsList ) => {
@@ -204,11 +204,11 @@ export class PushNotificationsService {
204
204
notifications ,
205
205
( notification , next ) => {
206
206
this . _makeRequest ( notification , ( err , response ) => {
207
- if ( err ) logger . error ( err ) ;
207
+ if ( err ) logger . error ( 'ERROR:' + err ) ;
208
208
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 ) ;
212
212
}
213
213
next ( ) ;
214
214
} ) ;
@@ -221,7 +221,7 @@ export class PushNotificationsService {
221
221
] ,
222
222
err => {
223
223
if ( err ) {
224
- logger . error ( 'An error ocurred generating notification' , err ) ;
224
+ logger . error ( 'An error ocurred generating notification:' + err ) ;
225
225
}
226
226
return cb ( err ) ;
227
227
}
@@ -406,7 +406,7 @@ export class PushNotificationsService {
406
406
try {
407
407
return Mustache . render ( t , data ) ;
408
408
} catch ( e ) {
409
- logger . error ( 'Could not apply data to template' , e ) ;
409
+ logger . error ( 'Could not apply data to template:' + e ) ;
410
410
error = e ;
411
411
}
412
412
} ) ;
0 commit comments