Use internal logger instead of debug/console for logging
Resolve #4104 Resolve #1966 Resolve #1937
This commit is contained in:
parent
3a5867b324
commit
0868c3517f
41 changed files with 136 additions and 109 deletions
|
|
@ -44,9 +44,9 @@ export default async function(userId: mongo.ObjectID | string, type: string, bod
|
|||
push.sendNotification(pushSubscription, JSON.stringify({
|
||||
type, body
|
||||
})).catch((err: any) => {
|
||||
//console.log(err.statusCode);
|
||||
//console.log(err.headers);
|
||||
//console.log(err.body);
|
||||
//swLogger.info(err.statusCode);
|
||||
//swLogger.info(err.headers);
|
||||
//swLogger.info(err.body);
|
||||
|
||||
if (err.statusCode == 410) {
|
||||
Subscription.remove({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue