Last active
January 27, 2024 04:18
-
-
Save LloydBlv/7dbb187f9e5eeac76fe01e7dd4fb20d9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val logging = new HttpLoggingInterceptor() | |
val level = if (BuildConfig.DEBUG) Level.BASIC else Level.NONE | |
logging.setLevel(level) | |
val client = OkHttpClient.Builder() | |
.addInterceptor(logging) | |
.build() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment