Skip to content

Commit

Permalink
Remain binary compatible with OkHttp 3.x
Browse files Browse the repository at this point in the history
fixes #173
  • Loading branch information
larsgrefer committed Jul 20, 2021
1 parent 5fbd08e commit fe610d7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions autoconfigure/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ dependencies {

optional 'org.springframework:spring-web'

optional 'com.squareup.okhttp3:okhttp'
optional 'com.squareup.okhttp3:logging-interceptor'
optional 'com.squareup.okhttp3:okhttp:3.+'
optional 'com.squareup.okhttp3:logging-interceptor:3.+'

testImplementation('org.springframework.boot:spring-boot-starter-test') {
exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ public HttpLoggingInterceptor okHttp3LoggingInterceptor(

HttpLoggingInterceptor httpLoggingInterceptor = new HttpLoggingInterceptor(actualLogger);

httpLoggingInterceptor.level(properties.getLevel());
//noinspection deprecation
httpLoggingInterceptor.setLevel(properties.getLevel());

return httpLoggingInterceptor;
}
Expand Down

0 comments on commit fe610d7

Please sign in to comment.