add bugsnag error reporting to asyncJamClient

This commit is contained in:
Nuwan 2022-11-05 04:36:05 +05:30
parent 9d787351fa
commit 87762c5933
1 changed files with 8 additions and 1 deletions

View File

@ -518,6 +518,11 @@
deferred.reject(e.message);
deferred = null;
}
Bugsnag.notify(e, function(event){
event.severity = 'info'
event.context = 'asyncJamClient'
event.setUser(gon.user_id, gon.user_email, gon.user_name)
});
}
}
});
@ -563,7 +568,9 @@
let deferred = new Deferred(appMessage.request_id);
const onlylogMethods = ['SessionSetTrackVolumeData']
const onlylogMethods = [
'SessionSetTrackVolumeData'
]
if(onlylogMethods.includes(prop)){
logger.log(