jicang / healywatch_reactive

ff
0 stars 3 forks source link

Replace `print` usages with `log` or other alternatives #82

Closed BradKwon closed 2 years ago

BradKwon commented 2 years ago

I noticed that there are print usages here and there and this is critical in terms of security. Please replace all print with log or other alternatives. I am going to create a new bug issue for that. And this guideline would be useful for you.

https://www.kindacode.com/snippet/flutter-avoid-print-calls-in-production-code/

badjio commented 2 years ago

Update: Please also replace remaining print usages in these files as well:

badjio commented 2 years ago

Fixed by using debugPrint. But this solution is not optimal, since debugPrint is only a wrapper around print. Better solution for future is to use log or add a check for environment (kReleaseMode/kDebugMode) and only print when it's on debug mode.