Skip to content

Commit

Permalink
Temporarily disable sentry
Browse files Browse the repository at this point in the history
  • Loading branch information
csaudiodesign committed Mar 20, 2024
1 parent 12182dc commit 1f5bb83
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/app/services/data.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<HotspotDataPayload>(`${this.apiUrl}/walk/data-hotspots/${endpoint}${summaryOption ? `&summary=${summaryOption}` : ''}`);
Expand Down
5 changes: 3 additions & 2 deletions src/app/services/parcours.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 })
Expand Down
2 changes: 1 addition & 1 deletion src/app/services/sentry.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit 1f5bb83

Please sign in to comment.