I am using a custom Interceptor for Retrofit2 in order to log all request/response jsons with pretty format.
The problem is this log is not only for local debugging purposes, but also is sent to Instabug (something like Crashlytics) to help debug user reported issues or crashes.
And so it is important for the info in that service to not contain user identifiable information like email, passwords, etc.
Since in the Interceptor we only get the raw request/response is the only solution to manually check for all possible sensitive fields and remove them from the logged version of the json?