@@ -41,15 +41,13 @@ exports.pending_test_uploads = {
4141} ;
4242
4343exports . debugOnConsole = ( text ) => {
44- console . log ( `checking if BROWSERSTACK_TEST_OBSERVABILITY_DEBUG is enabled in debugOnConsole: ${ process . env . BROWSERSTACK_OBSERVABILITY_DEBUG } ` ) ;
4544 if ( ( process . env . BROWSERSTACK_OBSERVABILITY_DEBUG + '' ) === "true" ||
4645 ( process . env . BROWSERSTACK_OBSERVABILITY_DEBUG + '' ) === "1" ) {
4746 consoleHolder . log ( `[ ${ TEST_REPORTING_ANALYTICS } ] ${ text } ` ) ;
4847 }
4948}
5049
5150exports . debug = ( text , shouldReport = false , throwable = null ) => {
52- console . log ( `checking if BROWSERSTACK_OBSERVABILITY_DEBUG is enabled in debug 52: ${ process . env . BROWSERSTACK_OBSERVABILITY_DEBUG } ` ) ;
5351 if ( process . env . BROWSERSTACK_OBSERVABILITY_DEBUG === "true" || process . env . BROWSERSTACK_OBSERVABILITY_DEBUG === "1" ) {
5452 logger . info ( `[ ${ TEST_REPORTING_ANALYTICS } ] ${ text } ` ) ;
5553 }
@@ -95,7 +93,6 @@ const supportFileCleanup = () => {
9593exports . buildStopped = false ;
9694
9795exports . printBuildLink = async ( shouldStopSession , exitCode = null ) => {
98- console . log ( `checking if testObservability session is active from printBuildLink ${ this . isTestObservabilitySession ( ) } ` ) ;
9996 if ( ! this . isTestObservabilitySession ( ) || exports . buildStopped ) return ;
10097 exports . buildStopped = true ;
10198 try {
@@ -329,11 +326,8 @@ const getCypressConfigFileContent = (bsConfig, cypressConfigPath) => {
329326}
330327
331328exports . setCrashReportingConfigFromReporter = ( credentialsStr , bsConfigPath , cypressConfigPath ) => {
332- console . log ( `Setting Crash Reporting Config with bsConfigPath: ${ bsConfigPath } ` ) ;
333- console . log ( `Setting Crash Reporting Config with bsConfig: ${ JSON . stringify ( bsConfig ) } ` ) ;
334329 try {
335330 const browserstackConfigFile = utils . readBsConfigJSON ( bsConfigPath ) ;
336-
337331 const cypressConfigFile = getCypressConfigFileContent ( null , cypressConfigPath ) ;
338332
339333 if ( ! credentialsStr ) {
@@ -350,11 +344,7 @@ exports.setCrashReportingConfigFromReporter = (credentialsStr, bsConfigPath, cyp
350344
351345const setCrashReportingConfig = ( bsConfig , bsConfigPath ) => {
352346 try {
353- console . log ( `Setting Crash Reporting Config with bsConfigPath: ${ bsConfigPath } ` ) ;
354347 const browserstackConfigFile = utils . readBsConfigJSON ( bsConfigPath ) ;
355- console . log ( `checking the type of bsConfig: ${ typeof bsConfig } ` ) ;
356- console . log ( `printing username and acces_key from bsConfig: ${ bsConfig [ "auth" ] [ "username" ] } : ${ bsConfig [ "auth" ] [ "access_key" ] } ` ) ;
357-
358348 const cypressConfigFile = getCypressConfigFileContent ( bsConfig , null ) ;
359349 const credentialsStr = JSON . stringify ( {
360350 username : bsConfig [ "auth" ] [ "username" ] ,
@@ -532,7 +522,6 @@ exports.batchAndPostEvents = async (eventUrl, kind, data) => {
532522}
533523
534524const RequestQueueHandler = require ( './requestQueueHandler' ) ;
535- const constants = require ( '../../helpers/constants' ) ;
536525exports . requestQueueHandler = new RequestQueueHandler ( ) ;
537526
538527exports . uploadEventData = async ( eventData , run = 0 ) => {
@@ -632,9 +621,6 @@ exports.setTestObservabilityFlags = (bsConfig) => {
632621 /* set default again but under try catch in case of wrong config */
633622 isTestObservabilitySession = utils . nonEmptyArray ( bsConfig . run_settings . downloads ) ? false : true ;
634623
635- console . log ( `bsconfig from setTestObservabilityFlags: ${ JSON . stringify ( bsConfig ) } ` ) ;
636- console . log ( `bs test olly enabled from env: ${ process . env . BROWSERSTACK_TEST_OBSERVABILITY } ` ) ;
637-
638624 if ( ! utils . isUndefined ( bsConfig [ "testObservability" ] ) ) isTestObservabilitySession = ( bsConfig [ "testObservability" ] == true || bsConfig [ "testObservability" ] == 1 ) ;
639625 if ( ! utils . isUndefined ( process . env . BROWSERSTACK_TEST_OBSERVABILITY ) ) isTestObservabilitySession = ( process . env . BROWSERSTACK_TEST_OBSERVABILITY == "true" || process . env . BROWSERSTACK_TEST_OBSERVABILITY == "1" ) ;
640626 if ( process . argv . includes ( '--disable-test-observability' ) ) isTestObservabilitySession = false ;
@@ -660,7 +646,6 @@ exports.setTestObservabilityFlags = (bsConfig) => {
660646 process . env . BROWSERSTACK_TEST_OBSERVABILITY = isTestObservabilitySession ;
661647 process . env . BROWSERSTACK_AUTOMATION = isBrowserstackInfra ;
662648
663- console . log ( `final testObservability capability is set to in setTestPObservabilityFlag ${ isTestObservabilitySession } ` ) ;
664649 return [ isTestObservabilitySession , isBrowserstackInfra ] ;
665650}
666651
@@ -867,7 +852,6 @@ exports.resolveModule = (module) => {
867852
868853const getReRunSpecs = ( rawArgs ) => {
869854 let finalArgs = rawArgs ;
870- console . log ( `checking if testObservability is enabled in getRerun specs ${ this . isTestObservabilitySession ( ) } ` ) ;
871855 if ( this . isTestObservabilitySession ( ) && this . shouldReRunObservabilityTests ( ) ) {
872856 let startIdx = - 1 , numEle = 0 ;
873857 for ( let idx = 0 ; idx < rawArgs . length ; idx ++ ) {
@@ -886,7 +870,6 @@ const getReRunSpecs = (rawArgs) => {
886870}
887871
888872const getLocalSessionReporter = ( ) => {
889- console . log ( `checking if testObservability is enabled getLocalSessionReporter ${ this . isTestObservabilitySession ( ) } ` ) ;
890873 if ( this . isTestObservabilitySession ( ) && process . env . BS_TESTOPS_JWT ) {
891874 return [ '--reporter' , TEST_OBSERVABILITY_REPORTER_LOCAL ] ;
892875 } else {
0 commit comments