File tree Expand file tree Collapse file tree 4 files changed +29
-1
lines changed
test/e2e/test-apps/other/debug-output Expand file tree Collapse file tree 4 files changed +29
-1
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ import {
16
16
setNodeAsyncContextStrategy ,
17
17
} from '@sentry/node' ;
18
18
import { Integration , Options } from '@sentry/types' ;
19
- import { stackParserFromStackParserOptions } from '@sentry/utils' ;
19
+ import { logger , stackParserFromStackParserOptions } from '@sentry/utils' ;
20
20
import { Session , session , WebContents } from 'electron' ;
21
21
22
22
import { IPCMode } from '../common/ipc' ;
@@ -153,6 +153,10 @@ export function init(userOptions: ElectronMainOptions): void {
153
153
integrations : getIntegrationsToSetup ( optionsWithDefaults ) ,
154
154
} ;
155
155
156
+ if ( options . debug ) {
157
+ logger . enable ( ) ;
158
+ }
159
+
156
160
removeRedundantIntegrations ( options ) ;
157
161
configureIPC ( options ) ;
158
162
Original file line number Diff line number Diff line change
1
+ {
2
+ "name" : " debug-output" ,
3
+ "version" : " 1.0.0" ,
4
+ "main" : " src/main.js" ,
5
+ "dependencies" : {
6
+ "@sentry/electron" : " 3.0.0"
7
+ }
8
+ }
Original file line number Diff line number Diff line change
1
+ description : Has Debug Output
2
+ command : yarn
3
+ expectedError : " Initializing Sentry: process"
Original file line number Diff line number Diff line change
1
+ const { init } = require ( '@sentry/electron/main' ) ;
2
+ const { app } = require ( 'electron' ) ;
3
+
4
+ init ( {
5
+ dsn : '__DSN__' ,
6
+ debug : true ,
7
+ autoSessionTracking : false ,
8
+ onFatalError : ( ) => { } ,
9
+ } ) ;
10
+
11
+ setTimeout ( ( ) => {
12
+ app . quit ( ) ;
13
+ } , 3000 ) ;
You can’t perform that action at this time.
0 commit comments