{"action":"opened","issue":{"url":"https://api.github.com/repos/square/picasso/issues/937","labels_url":"https://api.github.com/repos/square/picasso/issues/937/labels{/name}","comments_url":"https://api.github.com/repos/square/picasso/issues/937/comments","events_url":"https://api.github.com/repos/square/picasso/issues/937/events","html_url":"https://github.com/square/picasso/issues/937","id":63086588,"number":937,"title":"Picasso, OkHttp: Cannot add LoggingInterceptor","user":{"login":"ImGauravC","id":683281,"avatar_url":"https://avatars.githubusercontent.com/u/683281?v=3","gravatar_id":"","url":"https://api.github.com/users/ImGauravC","html_url":"https://github.com/ImGauravC","followers_url":"https://api.github.com/users/ImGauravC/followers","following_url":"https://api.github.com/users/ImGauravC/following{/other_user}","gists_url":"https://api.github.com/users/ImGauravC/gists{/gist_id}","starred_url":"https://api.github.com/users/ImGauravC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ImGauravC/subscriptions","organizations_url":"https://api.github.com/users/ImGauravC/orgs","repos_url":"https://api.github.com/users/ImGauravC/repos","events_url":"https://api.github.com/users/ImGauravC/events{/privacy}","received_events_url":"https://api.github.com/users/ImGauravC/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-19T20:38:36Z","updated_at":"2015-03-19T20:38:36Z","closed_at":null,"body":"I'm using Picasso for my application. I need to add a LoggingInterceptor to the requests that Picasso makes. I'm using Picasso 2.5.0. along with OkHttp 2.2.0\r\n\r\nI did the following:\r\n\r\n```java\r\npublic class CustomPicasso {\r\n\r\npublic static final String TAG = \"Picasso\";\r\n\r\nprivate static Picasso instance;\r\n\r\npublic static Picasso getInstance(Context context) {\r\n    if (instance == null) {\r\n        Log.d(TAG, \"initializing  a new instance\");\r\n        instance = new Picasso.Builder(context.getApplicationContext())\r\n                .downloader(new OkHttpDownloader(getClient()))\r\n                .build();\r\n    }\r\n    return instance;\r\n}\r\n\r\npublic static OkHttpClient getClient() {\r\n    OkHttpClient picassoOkHttpClient = new OkHttpClient();\r\n    if (BuildConfig.DEBUG) {\r\n        Log.d(TAG, \"Adding network interceptors to picasso instance\");\r\n        picassoOkHttpClient.interceptors().add(new LoggingInterceptor());\r\n    }\r\n    return picassoOkHttpClient;\r\n}\r\n}\r\n\r\npublic static class LoggingInterceptor implements Interceptor {\r\n    public static final String TAG = \"LoggingInterceptor\";\r\n\r\n    @Override\r\n    public Response intercept(Chain chain) throws IOException {\r\n        Log.d(TAG, \"Intercepting requests\");\r\n\r\n        Request request = chain.request();\r\n\r\n        long t1 = System.nanoTime();\r\n        Log.d(TAG, String.format(\"Sending request %s on %s%n%s\", request.url(), chain.connection(), request.headers()));\r\n        Response response = chain.proceed(request);\r\n\r\n        long t2 = System.nanoTime();\r\n        Log.d(TAG, String.format(\"Received response for %s in %.1fms%n%s\", response.request().url(), (t2 - t1) / 1e6d, response.headers()));\r\n\r\n        return response;\r\n    }\r\n}\r\n```\r\nI don't see any requests made to my image urls. Please tell me what am I doing wrong?\r\n"}}