@@ -1217,12 +1217,37 @@ exports.getNetworkErrorMessage = (dashboard_url) => {
1217
1217
}
1218
1218
1219
1219
exports . setNetworkLogs = ( bsConfig ) => {
1220
- if ( bsConfig . run_settings . networkLogs == 'true' || bsConfig . run_settings . networkLogs == true ) {
1220
+ if (
1221
+ ( bsConfig . run_settings . networkLogs == 'true' || bsConfig . run_settings . networkLogs == true )
1222
+ || ( bsConfig . run_settings . network_logs == 'true' || bsConfig . run_settings . network_logs == true )
1223
+ ) {
1221
1224
bsConfig . run_settings . networkLogs = 'true'
1225
+ bsConfig . run_settings . network_logs = 'true'
1226
+ if (
1227
+ this . isNotUndefined ( bsConfig . run_settings . networkLogsOptions )
1228
+ && typeof ( bsConfig . run_settings . networkLogsOptions ) === "object"
1229
+ ) {
1230
+ bsConfig . run_settings . networkLogsOptions = { capture_content : ( bsConfig . run_settings . networkLogsOptions . captureContent || bsConfig . run_settings . networkLogsOptions . capture_content ) }
1231
+ bsConfig . run_settings . network_logs_options = { capture_content : ( bsConfig . run_settings . networkLogsOptions . captureContent || bsConfig . run_settings . networkLogsOptions . capture_content ) }
1232
+ } else {
1233
+ if (
1234
+ this . isNotUndefined ( bsConfig . run_settings . network_logs_options )
1235
+ && typeof ( bsConfig . run_settings . network_logs_options ) === "object" ) {
1236
+ bsConfig . run_settings . networkLogsOptions = { capture_content : ( bsConfig . run_settings . network_logs_options . captureContent || bsConfig . run_settings . network_logs_options . capture_content ) }
1237
+ bsConfig . run_settings . network_logs_options = { capture_content : ( bsConfig . run_settings . network_logs_options . captureContent || bsConfig . run_settings . network_logs_options . capture_content ) }
1238
+ } else {
1239
+ bsConfig . run_settings . networkLogsOptions = null
1240
+ bsConfig . run_settings . network_logs_options = null
1241
+ }
1242
+ }
1222
1243
} else {
1223
1244
bsConfig . run_settings . networkLogs = 'false'
1245
+ bsConfig . run_settings . network_logs = 'false'
1246
+ bsConfig . run_settings . networkLogsOptions = null
1247
+ bsConfig . run_settings . network_logs_options = null
1224
1248
}
1225
- logger . debug ( `Networks logs value: ${ bsConfig . run_settings . networkLogs } ` ) ;
1249
+ logger . debug ( `Networks logs value: ${ bsConfig . run_settings . network_logs } ` ) ;
1250
+ logger . debug ( `Networks logs options value: ${ JSON . stringify ( bsConfig . run_settings . network_logs_options ) } ` ) ;
1226
1251
}
1227
1252
1228
1253
exports . versionChangedMessage = ( preferredVersion , actualVersion , frameworkUpgradeMessage = '' ) => {
0 commit comments