Loading src/common/services/log.service.js +9 −1 Original line number Original line Diff line number Diff line Loading @@ -61,6 +61,14 @@ class LogService { deviceLog.error(...args); deviceLog.error(...args); } } isApiError(error) { return error instanceof ApiError; } isUnexpectedError() { return !isNaN(error.status) && this.error.status >= 500; } exception(prepend, error) { exception(prepend, error) { if (!error) { if (!error) { Loading @@ -68,7 +76,7 @@ class LogService { prepend = null; prepend = null; } } if (!isNetworkFail(error) && !(error instanceof ApiError && error.status === 401)) { if (!isNetworkFail(error) && (!this.isApiError(error) || this.isUnexpectedError(error))) { // report the issue to sentry // report the issue to sentry Sentry.captureException(error); Sentry.captureException(error); } } Loading Loading
src/common/services/log.service.js +9 −1 Original line number Original line Diff line number Diff line Loading @@ -61,6 +61,14 @@ class LogService { deviceLog.error(...args); deviceLog.error(...args); } } isApiError(error) { return error instanceof ApiError; } isUnexpectedError() { return !isNaN(error.status) && this.error.status >= 500; } exception(prepend, error) { exception(prepend, error) { if (!error) { if (!error) { Loading @@ -68,7 +76,7 @@ class LogService { prepend = null; prepend = null; } } if (!isNetworkFail(error) && !(error instanceof ApiError && error.status === 401)) { if (!isNetworkFail(error) && (!this.isApiError(error) || this.isUnexpectedError(error))) { // report the issue to sentry // report the issue to sentry Sentry.captureException(error); Sentry.captureException(error); } } Loading