How do you manage your print/asserts()?

How do everyone handle their print/assert() when app goes live in the stores?

I just use a flag to check if my app is beta, like this;

1
2
3
4
5
6
local appIsBeta = true;
 
if appIsBeta == true then
   print()
   assert()
end

i just press ctrl+f and search for print() in file than i replace them all with --print or blank space, done)

views:1500 update:2012/1/13 9:04:04
corona forums © 2003-2011