diff --git a/gcpbuildcache/src/main/kotlin/androidx/build/gradle/gcpbuildcache/GcpTransportOptions.kt b/gcpbuildcache/src/main/kotlin/androidx/build/gradle/gcpbuildcache/GcpTransportOptions.kt index e0434ac..8af20b7 100644 --- a/gcpbuildcache/src/main/kotlin/androidx/build/gradle/gcpbuildcache/GcpTransportOptions.kt +++ b/gcpbuildcache/src/main/kotlin/androidx/build/gradle/gcpbuildcache/GcpTransportOptions.kt @@ -18,8 +18,11 @@ package androidx.build.gradle.gcpbuildcache import com.google.api.client.http.HttpRequestInitializer +import com.google.api.client.http.HttpTransport import com.google.cloud.ServiceOptions import com.google.cloud.http.HttpTransportOptions +import java.util.logging.Level +import java.util.logging.Logger /** * Sets up transport options and disables logging. @@ -33,4 +36,12 @@ internal class GcpTransportOptions(builder: Builder) : HttpTransportOptions(buil initializer.initialize(it) } } + + companion object { + init { + // Force log level to config + val logger = Logger.getLogger(HttpTransport::class.java.name) + logger.level = Level.SEVERE + } + } }