This PR wraps logging calls into if (BuildConfig.DEBUG) statements, since debug logs are unneded in release builds and so as to prevent disclosing sensitive information.
All calls to Log.i and Log.w were converted to Log.d and wrapped with the if, since they were used only for debugging. Log.e(TAG, e.toString()) calls were converted to a e.printStackTrace(), as that provides more information. We should make sure, though, that the error messages in those exceptions do not reveal any sensitive information.
This PR wraps logging calls into
if (BuildConfig.DEBUG)
statements, since debug logs are unneded in release builds and so as to prevent disclosing sensitive information.All calls to
Log.i
andLog.w
were converted toLog.d
and wrapped with theif
, since they were used only for debugging.Log.e(TAG, e.toString())
calls were converted to ae.printStackTrace()
, as that provides more information. We should make sure, though, that the error messages in those exceptions do not reveal any sensitive information.Fixes #37