Skip to content

Commit

Permalink
Merge pull request #17 from tikurahul/main
Browse files Browse the repository at this point in the history
Set log level to `SEVERE` for the java http client.
liutikas authored Apr 19, 2022

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
2 parents a3aa146 + 4b7add5 commit e1b210f
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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
}
}
}

0 comments on commit e1b210f

Please sign in to comment.