From 41ed9a1a7263fbdfac46c6c49f19f8d8d82f55de Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 2 Jan 2022 21:35:23 +0900 Subject: tweak client --- packages/client/src/os.ts | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'packages/client/src/os.ts') diff --git a/packages/client/src/os.ts b/packages/client/src/os.ts index 1ea205d5c8..d9400103f5 100644 --- a/packages/client/src/os.ts +++ b/packages/client/src/os.ts @@ -4,7 +4,6 @@ import { Component, defineAsyncComponent, markRaw, reactive, Ref, ref } from 'vu import { EventEmitter } from 'eventemitter3'; import insertTextAtCursor from 'insert-text-at-cursor'; import * as Misskey from 'misskey-js'; -import * as Sentry from '@sentry/browser'; import { apiUrl, debug, url } from '@/config'; import MkPostFormDialog from '@/components/post-form-dialog.vue'; import MkWaitingDialog from '@/components/waiting-dialog.vue'; @@ -70,19 +69,6 @@ export const api = ((endpoint: string, data: Record = {}, token?: s log!.res = markRaw(body.error); log!.state = 'failed'; } - - if (defaultStore.state.reportError && !_DEV_) { - Sentry.withScope((scope) => { - scope.setTag('api_endpoint', endpoint); - scope.setContext('api params', data); - scope.setContext('api error info', body.info); - scope.setTag('api_error_id', body.id); - scope.setTag('api_error_code', body.code); - scope.setTag('api_error_kind', body.kind); - scope.setLevel(Sentry.Severity.Error); - Sentry.captureMessage('API error'); - }); - } } }).catch(reject); }); -- cgit v1.2.3-freya