File tree Expand file tree Collapse file tree 3 files changed +5
-13
lines changed
android/src/test/java/com/instabug/reactlibrary Expand file tree Collapse file tree 3 files changed +5
-13
lines changed Original file line number Diff line number Diff line change @@ -204,12 +204,4 @@ public void testRegisterNetworkLogsListenerCalled() {
204
204
internalAPMMock .verify (() -> InternalAPM ._registerNetworkLogSanitizer (any ()));
205
205
}
206
206
}
207
-
208
-
209
- // @Test
210
- // public void testUpdateNetworkLogSnapshotInvalidJson() {
211
- // String invalidJsonString = "{\"id\":\"testId\"";
212
- //
213
- // assertThrows(RuntimeException.class, () -> rnInstabugNetworkLoggerModule.updateNetworkLogSnapshot(invalidJsonString));
214
- // }
215
207
}
Original file line number Diff line number Diff line change @@ -192,7 +192,7 @@ const handleNetworkInterceptionMode = (config: InstabugConfig) => {
192
192
function handleAndroidJSInterception ( ) {
193
193
if ( isNativeInterceptionFeatureEnabled && hasAPMNetworkPlugin ) {
194
194
shouldEnableNativeInterception = true ;
195
- console . warn (
195
+ Logger . warn (
196
196
InstabugConstants . IBG_APM_TAG + InstabugConstants . SWITCHED_TO_NATIVE_INTERCEPTION_MESSAGE ,
197
197
) ;
198
198
}
@@ -206,11 +206,11 @@ function handleAndroidNativeInterception() {
206
206
if ( isNativeInterceptionFeatureEnabled ) {
207
207
shouldEnableNativeInterception = hasAPMNetworkPlugin ;
208
208
if ( ! hasAPMNetworkPlugin ) {
209
- console . error ( InstabugConstants . IBG_APM_TAG + InstabugConstants . PLUGIN_NOT_INSTALLED_MESSAGE ) ;
209
+ Logger . error ( InstabugConstants . IBG_APM_TAG + InstabugConstants . PLUGIN_NOT_INSTALLED_MESSAGE ) ;
210
210
}
211
211
} else {
212
212
shouldEnableNativeInterception = false ; // rollback to use JS interceptor for APM & Core.
213
- console . error (
213
+ Logger . error (
214
214
InstabugConstants . IBG_APM_TAG + InstabugConstants . NATIVE_INTERCEPTION_DISABLED_MESSAGE ,
215
215
) ;
216
216
}
@@ -256,7 +256,7 @@ const handleInterceptionModeForIOS = (config: InstabugConfig) => {
256
256
} else {
257
257
shouldEnableNativeInterception = false ;
258
258
NetworkLogger . setEnabled ( true ) ; // rollback to JS interceptor
259
- console . error (
259
+ Logger . error (
260
260
InstabugConstants . IBG_APM_TAG + InstabugConstants . NATIVE_INTERCEPTION_DISABLED_MESSAGE ,
261
261
) ;
262
262
}
Original file line number Diff line number Diff line change @@ -172,7 +172,7 @@ export const resetNetworkListener = () => {
172
172
_networkListener = null ;
173
173
NativeNetworkLogger . resetNetworkLogsListener ( ) ;
174
174
} else {
175
- console . error (
175
+ Logger . error (
176
176
`${ InstabugConstants . IBG_APM_TAG } : The \`resetNetworkListener()\` method is intended solely for testing purposes.` ,
177
177
) ;
178
178
}
You can’t perform that action at this time.
0 commit comments