mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-22 09:25:49 +03:00
This code is for debug build (see the path), so no need to check again
This commit is contained in:
parent
f3bc39a0c5
commit
28bfea6af0
1 changed files with 19 additions and 22 deletions
|
@ -38,8 +38,6 @@ class FormattedJsonHttpLogger : HttpLoggingInterceptor.Logger {
|
||||||
*/
|
*/
|
||||||
@Synchronized
|
@Synchronized
|
||||||
override fun log(@NonNull message: String) {
|
override fun log(@NonNull message: String) {
|
||||||
// In RELEASE there is no log, but for sure, test again BuildConfig.DEBUG
|
|
||||||
if (BuildConfig.DEBUG) {
|
|
||||||
Timber.v(message)
|
Timber.v(message)
|
||||||
|
|
||||||
if (message.startsWith("{")) {
|
if (message.startsWith("{")) {
|
||||||
|
@ -63,7 +61,6 @@ class FormattedJsonHttpLogger : HttpLoggingInterceptor.Logger {
|
||||||
}
|
}
|
||||||
// Else not a json string to log
|
// Else not a json string to log
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
private fun logJson(formattedJson: String) {
|
private fun logJson(formattedJson: String) {
|
||||||
formattedJson
|
formattedJson
|
||||||
|
|
Loading…
Reference in a new issue