This commit is contained in:
guozhen
2024-12-13 15:49:50 +08:00
committed by xuhuixiang
parent 1439e4c23c
commit 16e4cc297e

View File

@@ -62,7 +62,7 @@ public class Api extends BaseApi {
// if (Config.IS_DEBUG) { // if (Config.IS_DEBUG) {
HttpLoggingInterceptor interceptor = new HttpLoggingInterceptor(message -> { HttpLoggingInterceptor interceptor = new HttpLoggingInterceptor(message -> {
String text = message; String text = message;
LogUtils.i("LAILIAOLIAO","LAILIAOLIAO:"+text); LogUtils.d("LAILIAOLIAO","LAILIAOLIAO:"+text); //只有debug才打印
}); });
interceptor.setLevel(HttpLoggingInterceptor.Level.BODY); interceptor.setLevel(HttpLoggingInterceptor.Level.BODY);
builder.addInterceptor(interceptor); builder.addInterceptor(interceptor);