⚡ Improved error logging
This commit is contained in:
@@ -1,15 +1,14 @@
|
||||
/* eslint no-console: ["error", { allow: ["warn", "error"] }] */
|
||||
|
||||
import { warningMsg, raiseBug } from '@/utils/CoolConsole';
|
||||
import * as Sentry from '@sentry/vue';
|
||||
import { warningMsg } from '@/utils/CoolConsole';
|
||||
|
||||
/**
|
||||
* Function called when an error happens
|
||||
* If you wish to use an error logging service, put code for it here
|
||||
*/
|
||||
const ErrorHandler = function handler(msg) {
|
||||
warningMsg();
|
||||
console.warn(msg);
|
||||
raiseBug();
|
||||
warningMsg(msg);
|
||||
Sentry.captureMessage(msg);
|
||||
};
|
||||
|
||||
export default ErrorHandler;
|
||||
|
||||
Reference in New Issue
Block a user