Does anyone have any idea why I wouldn’t be able t...
# android
l
Does anyone have any idea why I wouldn’t be able to see logs from OkHttp’s
HttpLoggingInterceptor
on a signed release build? I’ve set debuggable to true, and tried on the emulator and 2 physical devices (OnePlus and Samsung) but no matter what I do I can’t see logs from it, I can see them fine on a debug build Here’s how the logger is being added:
Copy code
val httpLoggingInterceptor = HttpLoggingInterceptor()
httpLoggingInterceptor.level = HttpLoggingInterceptor.Level.BODY
return OkHttpClient.Builder()
    .addInterceptor(httpLoggingInterceptor)
    .addInterceptor(headerInterceptor)
    .build()
e
Do you have any Proguard rules stripping out logging calls?
l
That was it! It’s always a Proguard issue… Thanks 🙂
👍 2