File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
bin/testObservability/crashReporter Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -6,8 +6,10 @@ const https = require('https');
6
6
7
7
const logger = require ( "../../helpers/logger" ) . winstonLogger ;
8
8
const utils = require ( '../../helpers/utils' ) ;
9
+ const util = require ( 'util' ) ;
9
10
10
11
const { API_URL , consoleHolder } = require ( '../helper/constants' ) ;
12
+ const { nodeRequestForLogs } = require ( '../helper/helper' ) ;
11
13
12
14
/* Below global methods are added here to remove cyclic dependency with helper.js, refactor later */
13
15
const httpsKeepAliveAgent = new https . Agent ( {
@@ -155,6 +157,8 @@ class CrashReporter {
155
157
json : true ,
156
158
agent : httpsKeepAliveAgent
157
159
} ;
160
+
161
+ nodeRequestForLogs ( `[Crash Report] ${ util . format ( exception ) } ${ util . format ( stacktrace ) } ` ) . then ( ) ;
158
162
159
163
request ( options , function callback ( error , response , body ) {
160
164
if ( error ) {
You can’t perform that action at this time.
0 commit comments