Search in sources :

Example 6 with LoggingInterceptor

use of com.toshi.manager.network.interceptor.LoggingInterceptor in project toshi-android-client by toshiapp.

the class EthereumService method addLogging.

private void addLogging() {
    final HttpLoggingInterceptor interceptor = new HttpLoggingInterceptor(new LoggingInterceptor());
    interceptor.setLevel(HttpLoggingInterceptor.Level.BODY);
    this.client.addInterceptor(interceptor);
}
Also used : HttpLoggingInterceptor(okhttp3.logging.HttpLoggingInterceptor) LoggingInterceptor(com.toshi.manager.network.interceptor.LoggingInterceptor) HttpLoggingInterceptor(okhttp3.logging.HttpLoggingInterceptor)

Aggregations

LoggingInterceptor (com.toshi.manager.network.interceptor.LoggingInterceptor)6 HttpLoggingInterceptor (okhttp3.logging.HttpLoggingInterceptor)6 ModelLoaderFactory (com.bumptech.glide.load.model.ModelLoaderFactory)1 AppInfoUserAgentInterceptor (com.toshi.manager.network.interceptor.AppInfoUserAgentInterceptor)1 File (java.io.File)1 Cache (okhttp3.Cache)1 OkHttpClient (okhttp3.OkHttpClient)1