mirror of
https://github.com/square/okhttp.git
synced 2025-11-27 18:21:14 +03:00
Return this from HttpLoggingInterceptor.setLevel()
This commit is contained in:
@@ -124,8 +124,9 @@ public final class HttpLoggingInterceptor implements Interceptor {
|
||||
private volatile Level level = Level.NONE;
|
||||
|
||||
/** Change the level at which this interceptor logs. */
|
||||
public void setLevel(Level level) {
|
||||
public HttpLoggingInterceptor setLevel(Level level) {
|
||||
this.level = level;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override public Response intercept(Chain chain) throws IOException {
|
||||
|
||||
Reference in New Issue
Block a user