We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c174d8 commit 5c4a0d6Copy full SHA for 5c4a0d6
utils/capture-error.ts
@@ -1,5 +1,4 @@
1
import { showSnackbar } from "@/components/Snackbar/Snackbar.service";
2
-import { isDev } from "@/utils/getEnv";
3
import logger from "@/utils/logger";
4
5
export function captureError(
@@ -8,12 +7,10 @@ export function captureError(
8
7
message?: string;
9
}
10
) {
11
- if (isDev) {
12
- if (options?.message) {
13
- logger.error(`${options.message}:`, error);
14
- } else {
15
- logger.error(error);
16
- }
+ if (options?.message) {
+ logger.error(`${options.message}:`, error);
+ } else {
+ logger.error(error);
17
18
19
// Note: (thierry) Our logger is already sending error to Sentry
0 commit comments