Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

Lot's of times, randomly I do see:

LOG MESSAGE QUOTA EXCEEDED - SOME MESSAGES FROM THIS PROCESS HAVE BEEN DISCARDED

Are my console.log's being discarded? I tried clearing the console to see it more clearly but I can't find a way to clear console either.

On Android, I wouldn't have issue with missing console.log.

like image 651
Noitidart Avatar asked Apr 07 '17 23:04

Noitidart


1 Answers

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.

like image 95
Marek Grác Avatar answered Oct 08 '22 18:10

Marek Grác