@@ -14,11 +14,9 @@ export namespace NSSentry {
1414 }
1515 export function sendEvent ( event : Event ) : Promise < Response > {
1616 return new Promise ( ( resolve , reject ) => {
17- console . log ( 'sendEvent' ) ;
1817 const jsonData = NSString . stringWithString ( JSON . stringify ( event ) ) . dataUsingEncoding ( NSUTF8StringEncoding ) ;
1918 const sentryEvent = SentryEvent . alloc ( ) . initWithJSON ( jsonData ) ;
2019 SentryClient . sharedClient . sendEventWithCompletionHandler ( sentryEvent , function ( error ) {
21- console . log ( 'sendEventWithCompletionHandler' , error ) ;
2220 if ( error ) {
2321 reject ( error ) ;
2422 } else {
@@ -34,16 +32,16 @@ export namespace NSSentry {
3432 return new Promise ( resolve => {
3533 const client = SentryClient . alloc ( ) . initWithDsnDidFailWithError ( dsnString ) ;
3634 // client.shouldSendEvent = (event: SentryEvent) => true;
37- client . beforeSerializeEvent = ( e : SentryEvent ) => {
38- console . log ( 'beforeSerializeEvent3' , e . exceptions , e . exceptions && e . exceptions . count > 0 && toJsObject ( e . exceptions . objectAtIndex ( 0 ) . serialize ( ) ) , e . stacktrace ) ;
39- const stacktrace = e . stacktrace ;
40- if ( stacktrace ) {
41- const frames = stacktrace . frames ;
42- frames . enumerateObjectsUsingBlock ( p => {
43- console . log ( 'frame' , p . fileName ) ;
44- } ) ;
45- }
46- } ;
35+ // client.beforeSerializeEvent = (e: SentryEvent) => {
36+ // console.log('beforeSerializeEvent3', e.exceptions, e.exceptions && e.exceptions.count > 0 && toJsObject(e.exceptions.objectAtIndex(0).serialize()), e.stacktrace);
37+ // const stacktrace = e.stacktrace;
38+ // if (stacktrace) {
39+ // const frames = stacktrace.frames;
40+ // frames.enumerateObjectsUsingBlock(p => {
41+ // console.log('frame', p.fileName);
42+ // });
43+ // }
44+ // };
4745 SentryClient . sharedClient = client ;
4846 if ( ! ! options . enableNativeCrashHandling ) {
4947 SentryClient . sharedClient . startCrashHandlerWithError ( ) ;
0 commit comments