diff --git a/app/utils/log.js b/app/utils/log.js index b83af1f5..fb964e14 100644 --- a/app/utils/log.js +++ b/app/utils/log.js @@ -8,4 +8,10 @@ export const { analytics } = firebase; export const loggerConfig = bugsnag.config; export const { leaveBreadcrumb } = bugsnag; -export default bugsnag.notify; +export default (e) => { + if (e instanceof Error) { + bugsnag.notify(e); + } else { + console.log(e); + } +};