Remove excessive logging

This commit is contained in:
topjohnwu 2020-06-03 01:28:50 -07:00
parent a17908f6e1
commit 6030b00ee2
2 changed files with 4 additions and 9 deletions

View File

@ -31,7 +31,6 @@ open class App() : Application() {
init { init {
AppCompatDelegate.setCompatVectorFromResourcesEnabled(true) AppCompatDelegate.setCompatVectorFromResourcesEnabled(true)
Shell.Config.setFlags(Shell.FLAG_MOUNT_MASTER) Shell.Config.setFlags(Shell.FLAG_MOUNT_MASTER)
Shell.Config.verboseLogging(BuildConfig.DEBUG)
Shell.Config.addInitializers(RootInit::class.java) Shell.Config.addInitializers(RootInit::class.java)
Shell.Config.setTimeout(2) Shell.Config.setTimeout(2)
FileProvider.callHandler = SuCallbackHandler FileProvider.callHandler = SuCallbackHandler

View File

@ -2,7 +2,6 @@ package com.topjohnwu.magisk.di
import android.content.Context import android.content.Context
import com.squareup.moshi.Moshi import com.squareup.moshi.Moshi
import com.topjohnwu.magisk.BuildConfig
import com.topjohnwu.magisk.core.Const import com.topjohnwu.magisk.core.Const
import com.topjohnwu.magisk.data.network.GithubApiServices import com.topjohnwu.magisk.data.network.GithubApiServices
import com.topjohnwu.magisk.data.network.GithubRawServices import com.topjohnwu.magisk.data.network.GithubRawServices
@ -16,7 +15,6 @@ import okhttp3.Dns
import okhttp3.HttpUrl import okhttp3.HttpUrl
import okhttp3.OkHttpClient import okhttp3.OkHttpClient
import okhttp3.dnsoverhttps.DnsOverHttps import okhttp3.dnsoverhttps.DnsOverHttps
import okhttp3.logging.HttpLoggingInterceptor
import org.koin.dsl.module import org.koin.dsl.module
import retrofit2.Retrofit import retrofit2.Retrofit
import retrofit2.adapter.rxjava2.RxJava2CallAdapterFactory import retrofit2.adapter.rxjava2.RxJava2CallAdapterFactory
@ -36,12 +34,10 @@ val networkingModule = module {
fun createOkHttpClient(context: Context): OkHttpClient { fun createOkHttpClient(context: Context): OkHttpClient {
val builder = OkHttpClient.Builder() val builder = OkHttpClient.Builder()
if (BuildConfig.DEBUG) { // val httpLoggingInterceptor = HttpLoggingInterceptor().apply {
val httpLoggingInterceptor = HttpLoggingInterceptor().apply { // level = HttpLoggingInterceptor.Level.HEADERS
level = HttpLoggingInterceptor.Level.HEADERS // }
} // builder.addInterceptor(httpLoggingInterceptor)
builder.addInterceptor(httpLoggingInterceptor)
}
if (!Networking.init(context)) { if (!Networking.init(context)) {
builder.sslSocketFactory(NoSSLv3SocketFactory()) builder.sslSocketFactory(NoSSLv3SocketFactory())