Add defensive coding to network logger call
@@ -29,11 +29,15 @@ export default {
network
);
} else {
+ try {
if (Platform.OS === 'android') {
Instabug.networkLog(JSON.stringify(network));
} else {
Instabug.networkLog(network);
}
+ } catch (e) {
+ console.error(e);
+ }
}
}
});
