Skip to content

Commit 4bac5d4

Browse files
committed
UI: avoid logging API errors in browser console
1 parent fe572b3 commit 4bac5d4

4 files changed

Lines changed: 0 additions & 187 deletions

File tree

ui/src/utils/apiError.js

Lines changed: 0 additions & 56 deletions
This file was deleted.

ui/src/utils/plugins.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ import eventBus from '@/config/eventBus'
2323
import store from '@/store'
2424
import { sourceToken } from '@/utils/request'
2525
import { toLocalDate, toLocaleDate } from '@/utils/date'
26-
import { logApiError } from '@/utils/apiError'
2726

2827
export const pollJobPlugin = {
2928
install (app) {
@@ -218,7 +217,6 @@ export const pollJobPlugin = {
218217
export const notifierPlugin = {
219218
install (app) {
220219
app.config.globalProperties.$notifyError = function (error) {
221-
logApiError(error)
222220
var msg = i18n.global.t('message.request.failed')
223221
var desc = ''
224222
if (error && error.response) {

ui/src/utils/request.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ import notification from 'ant-design-vue/es/notification'
2424
import { CURRENT_PROJECT } from '@/store/mutation-types'
2525
import { i18n } from '@/locales'
2626
import store from '@/store'
27-
import { logApiError } from '@/utils/apiError'
2827

2928
let source
3029
const service = axios.create({
@@ -34,7 +33,6 @@ const service = axios.create({
3433
const err = (error) => {
3534
const response = error.response
3635
let countNotify = store.getters.countNotify
37-
logApiError(error)
3836
if (response) {
3937
if (response.status === 403) {
4038
const data = response.data

ui/tests/unit/utils/apiError.spec.js

Lines changed: 0 additions & 127 deletions
This file was deleted.

0 commit comments

Comments
 (0)