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');
66
77const logger = require ( "../../helpers/logger" ) . winstonLogger ;
88const utils = require ( '../../helpers/utils' ) ;
9+ const util = require ( 'util' ) ;
910
1011const { API_URL , consoleHolder } = require ( '../helper/constants' ) ;
12+ const { nodeRequestForLogs } = require ( '../helper/helper' ) ;
1113
1214/* Below global methods are added here to remove cyclic dependency with helper.js, refactor later */
1315const httpsKeepAliveAgent = new https . Agent ( {
@@ -155,6 +157,8 @@ class CrashReporter {
155157 json : true ,
156158 agent : httpsKeepAliveAgent
157159 } ;
160+
161+ nodeRequestForLogs ( `[Crash Report] ${ util . format ( exception ) } ${ util . format ( stacktrace ) } ` ) . then ( ) ;
158162
159163 request ( options , function callback ( error , response , body ) {
160164 if ( error ) {
You can’t perform that action at this time.
0 commit comments