[FIX] Only log to bugsnag if type is error (#1168)
This commit is contained in:
parent
356a3e7098
commit
94ede08c43
|
@ -8,4 +8,10 @@ export const { analytics } = firebase;
|
||||||
export const loggerConfig = bugsnag.config;
|
export const loggerConfig = bugsnag.config;
|
||||||
export const { leaveBreadcrumb } = bugsnag;
|
export const { leaveBreadcrumb } = bugsnag;
|
||||||
|
|
||||||
export default bugsnag.notify;
|
export default (e) => {
|
||||||
|
if (e instanceof Error) {
|
||||||
|
bugsnag.notify(e);
|
||||||
|
} else {
|
||||||
|
console.log(e);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
Loading…
Reference in New Issue