Sometimes console.log shows in log-ios sometimes it doesn't

后端 未结 2 1692
栀梦
栀梦 2021-01-02 20:32

I have run react-native start in one terminal, and then react-native ios-run in another. My initial console.log rarely show, sometimes

2条回答
  •  猫巷女王i
    2021-01-02 21:08

    react-native logs information using syslog daemon. This daemon attempts to prevent spamming to the log (DoS attack). These limits are set on per process basis.

    The simple solution is to stop/start simulator and you will be obtain new process that is not limited by the previous behaviour.

    The other solution is to disable syslogd limits what will be heavilly depends on your operation system.

提交回复
热议问题