diff --git a/app/sagas/scheduleSaga.js b/app/sagas/scheduleSaga.js index 3369dd24b..42f3cfff0 100644 --- a/app/sagas/scheduleSaga.js +++ b/app/sagas/scheduleSaga.js @@ -81,7 +81,7 @@ function* updateSchedule() { } } catch (error) { yield put({ type: 'GET_SCHEDULE_FAILURE', error }) - logger.trackException(error, false) + logger.trackException(error) } } } diff --git a/app/sagas/userSaga.js b/app/sagas/userSaga.js index 5d73d2d2c..c0cd22d97 100644 --- a/app/sagas/userSaga.js +++ b/app/sagas/userSaga.js @@ -77,7 +77,7 @@ function* doLogin(action) { yield call(queryUserData) } } catch (error) { - logger.trackException(error, false) + logger.trackException(error) yield put({ type: 'LOG_IN_FAILURE', error }) } } @@ -100,7 +100,8 @@ function* doTokenRefresh() { if (secondError.message === invalidCredsMessage) { // We tried again and got the same error yield put({ type: 'PANIC_LOG_OUT' }) - logger.trackException('InvalidCreds Error', false) + const invalidCredsError = new Error('InvalidCreds Error') + logger.trackException(invalidCredsError) yield call(clearUserData) } } diff --git a/app/util/logger.js b/app/util/logger.js index 15d4f2d53..f83d1a38d 100644 --- a/app/util/logger.js +++ b/app/util/logger.js @@ -55,7 +55,10 @@ module.exports = { report.severity = severity if (metadata) { - report.metadata = metadata + report.metadata = { + ...report.metadata, + loggerData: { ...metadata } + } } }) // tracker.trackEvent('Error', error)