-
Notifications
You must be signed in to change notification settings - Fork 135
Closed
Labels
🗣 DiscussionThis label identifies an ongoing discussion on a subjectThis label identifies an ongoing discussion on a subject
Description
Introduction
When running in release mode, React-native will display info logs (as also mentioned in this issue: facebook/react-native#18584 and in this PR: facebook/react-native#30579 )
Details
For instance, using react-native-navigation
, the following logs are displayed (because of Libraries/ReactNative/AppRegistry.js:186
):
Running "main.Session" with {"initialProps":{"componentId":"Component1"},"rootTag":1301}
Causing them to appear in report logs like Bugsnag:
Discussion points
Since it seems accepted that the default behavior is that React Native is logging data via console.log
and the recommended way to deal with it is to install a third-party package, I would like to propose the idea of setting a flag to be able to disable it.
Something like AppRegistry.disableLogs
seems like a reasonable approach.
guyca, mrousavy, todorone, arthedza, CatInEars and 1 moremrousavy, guyca and todorone
Metadata
Metadata
Assignees
Labels
🗣 DiscussionThis label identifies an ongoing discussion on a subjectThis label identifies an ongoing discussion on a subject