Indrre / Fasting-App

0 stars 0 forks source link

Printing logs - best practice #6

Open RichAppz opened 2 years ago

RichAppz commented 2 years ago

Stop using print(...) this practice is not correct.

You should replace all the print(...) with debugPrint(...)

YOu can research but basically, print is visible in ALL logs, so if you go to the store and someone connects their device to Xcode the logs are visible. This also uses a resource that is not required in production. debugPrint is only printed during development.

Indrre commented 2 years ago

Done. I use print(...) while I develop, once I'm done all will be removed