1
0
mirror of https://github.com/square/okhttp.git synced 2025-11-27 18:21:14 +03:00

Remove Request#urlString(), just use url().toString().

This commit is contained in:
Jake Wharton
2015-12-15 00:33:09 -05:00
parent ee3114d07c
commit c642bea938
9 changed files with 18 additions and 22 deletions

View File

@@ -206,7 +206,7 @@ public final class HttpLoggingInterceptor implements Interceptor {
ResponseBody responseBody = response.body();
logger.log("<-- " + response.code() + ' ' + response.message() + ' '
+ response.request().urlString() + " (" + tookMs + "ms" + (!logHeaders ? ", "
+ response.request().url() + " (" + tookMs + "ms" + (!logHeaders ? ", "
+ responseBody.contentLength() + "-byte body" : "") + ')');
if (logHeaders) {