Skip to content

Commit

Permalink
enable debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
huajiang-tubi committed Nov 26, 2024
1 parent ef38a1f commit d8d1e99
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
9 changes: 6 additions & 3 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,12 @@ lazy val testSettings: Seq[Setting[_]] = Seq(
scriptedBufferLog := false
)

lazy val core = project
.in(file("core"))
.settings(testSettings)
lazy val core = {
SetLoggerLevel.setHttpURLConnectionLoggerLevelToFine()
project
.in(file("core"))
.settings(testSettings)
}

lazy val `sbt-codeartifact` = project
.in(file("sbt-codeartifact"))
Expand Down
9 changes: 9 additions & 0 deletions project/SetLoggerLevel.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import sun.util.logging.PlatformLogger

object SetLoggerLevel {
def setHttpURLConnectionLoggerLevelToFine(): Unit = {
PlatformLogger
.getLogger("sun.net.www.protocol.http.HttpURLConnection")
.setLevel(PlatformLogger.Level.FINE)
}
}

0 comments on commit d8d1e99

Please sign in to comment.