Turn off those annoying warning messages

Hi,

This is a question about running on an android device.

Is there a way in which I can turn off the logging of error messages in specific parts of the code.

In Perl you can turn off warnings in portion of the code like this: $^W=0; crazywarnings(); $^W=1

Is there something like this in Lua/Corona? It just creates so much noise.

I am using some 3rd party libraries and the entire console for about 100k lines is;

WARNING: Asset file “image/turd@2x.png” does not exist

Which is true enough, but in this particular instance I don’t care.

:slight_smile:

http://docs.coronalabs.com/guide/basics/debugging/index.html

There is a section in here on running “adb logcat” that has Corona and some other stuff on the command line.  This command will filter the console log to only show Corona activity messages cutting out all of the OS stuff.  Of course when you want to debug something like In App Purchases, Facebook or other things that have their own Activity, then you have to remove the activity filters and just run “adb logcat”, but if you’re currently interested in the Corona only messages you can apply that filter.

Rob

adb logcat Corona:i *:s

http://docs.coronalabs.com/guide/basics/debugging/index.html

There is a section in here on running “adb logcat” that has Corona and some other stuff on the command line.  This command will filter the console log to only show Corona activity messages cutting out all of the OS stuff.  Of course when you want to debug something like In App Purchases, Facebook or other things that have their own Activity, then you have to remove the activity filters and just run “adb logcat”, but if you’re currently interested in the Corona only messages you can apply that filter.

Rob

adb logcat Corona:i *:s