Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Lms24 committed Nov 17, 2023
1 parent 60e3495 commit 5090be7
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions packages/core/src/integrations/sentry/data/sentryDataCache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,7 @@ class SentryDataCache {
event.event_id = generate_uuidv4();
}

console.log('DDDD', event);
if (isErrorEvent(event)) {
console.log('AAAA');
reverseStackTraces(event);
}

Expand Down Expand Up @@ -185,13 +183,11 @@ function isErrorEvent(event: SentryEvent): event is SentryErrorEvent {

function reverseStackTraces(errorEvent: SentryErrorEvent): void {
if (!errorEvent.exception || !errorEvent.exception.values) {
console.log('CCC', errorEvent);
return;
}
errorEvent.exception.values.forEach(value => {
if (value.stacktrace) {
value.stacktrace.frames.reverse();
}
});
console.log('BBB', errorEvent.exception.values);
}

0 comments on commit 5090be7

Please sign in to comment.