Skip to content
Snippets Groups Projects
Commit 94ede08c authored by Djorkaeff Alexandre's avatar Djorkaeff Alexandre Committed by Diego Mello
Browse files

[FIX] Only log to bugsnag if type is error (#1168)

parent 356a3e70
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
};
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment