From 1f5bb8365ee6c10ff00c26af34dbf442b8ef0f30 Mon Sep 17 00:00:00 2001 From: Cedric Spindler Date: Wed, 20 Mar 2024 21:50:07 +0100 Subject: [PATCH] Temporarily disable sentry --- src/app/services/data.service.ts | 4 ++-- src/app/services/parcours.service.ts | 5 +++-- src/app/services/sentry.service.ts | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/app/services/data.service.ts b/src/app/services/data.service.ts index c2b9e6d..faf9c19 100644 --- a/src/app/services/data.service.ts +++ b/src/app/services/data.service.ts @@ -134,9 +134,9 @@ export class DataService { return this.http.get(`${this.apiUrl}/files/walk/${url}`, {responseType: 'blob'}); } - public postError(payload: unknown) { + /* public postError(payload: unknown) { this.http.post(`${this.apiUrl}/sentry`, { payload: payload }).subscribe(); - } + } */ public queryDataHotspots(endpoint: string, summaryOption?: number) { return this.http.get(`${this.apiUrl}/walk/data-hotspots/${endpoint}${summaryOption ? `&summary=${summaryOption}` : ''}`); diff --git a/src/app/services/parcours.service.ts b/src/app/services/parcours.service.ts index 62552dd..ca7da55 100644 --- a/src/app/services/parcours.service.ts +++ b/src/app/services/parcours.service.ts @@ -47,13 +47,14 @@ export class ParcoursService { this._geolocation = this.geolocation.pipe( tap({ error: error => { - this.dataService.postError({ + console.error(error); + /* this.dataService.postError({ code: error.code, message: error.message, PERMISSION_DENIED: error.PERMISSION_DENIED, POSITION_UNAVAILABLE: error.POSITION_UNAVAILABLE, TIMEOUT: error.TIMEOUT, - }); + }); */ } }), retry({ delay: 2000 }) diff --git a/src/app/services/sentry.service.ts b/src/app/services/sentry.service.ts index 86e98e2..8cba127 100644 --- a/src/app/services/sentry.service.ts +++ b/src/app/services/sentry.service.ts @@ -12,7 +12,7 @@ export class SentryService extends ErrorHandler { override handleError(error: any) { if (error) { - this.dataService.postError(error); + // this.dataService.postError(error); super.handleError(error); } }