Skip to content

Commit

Permalink
fix: Switch logging to java.util.logging (#305)
Browse files Browse the repository at this point in the history
Closes #709
  • Loading branch information
sdsantos authored Oct 10, 2023
1 parent d10b590 commit 81eb2e0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 0 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,6 @@ dependencies {
testImplementation("org.jetbrains.kotlin:kotlin-test-junit5")
testImplementation("com.nhaarman.mockitokotlin2:mockito-kotlin:2.2.0")
testImplementation("org.mockito:mockito-inline:5.2.0")

implementation("io.github.microutils:kotlin-logging-jvm:3.0.5")
}

java {
Expand Down
6 changes: 3 additions & 3 deletions src/main/kotlin/tech/relaycorp/poweb/PoWebClient.kt
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ import kotlinx.coroutines.delay
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.FlowCollector
import kotlinx.coroutines.flow.flow
import mu.KotlinLogging
import okhttp3.OkHttpClient
import org.bouncycastle.util.encoders.Base64
import tech.relaycorp.relaynet.bindings.ContentTypes
Expand Down Expand Up @@ -57,11 +56,10 @@ import java.net.UnknownHostException
import java.security.MessageDigest
import java.security.PublicKey
import java.time.Duration
import java.util.logging.Logger
import kotlin.time.Duration.Companion.seconds
import kotlin.time.ExperimentalTime

private val logger = KotlinLogging.logger {}

/**
* PoWeb client.
*
Expand All @@ -82,6 +80,8 @@ public class PoWebClient internal constructor(
.build()
}
) : PDCClient {
private val logger by lazy { Logger.getLogger(javaClass.name) }

internal var ktorClient = HttpClient(ktorEngine) {
install(WebSockets)
}
Expand Down

0 comments on commit 81eb2e0

Please sign in to comment.