Skip to content

Commit

Permalink
udpate ktor 3.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaudgiuliani committed Dec 28, 2022
1 parent 918d4d2 commit 4333174
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 17 deletions.
6 changes: 0 additions & 6 deletions ktor/examples/hello-ktor/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,3 @@ repositories {
maven { url "https://dl.bintray.com/kotlin/kotlinx" }
maven { url "https://dl.bintray.com/kotlin/ktor" }
}

kotlin {
experimental {
coroutines "enable"
}
}
8 changes: 4 additions & 4 deletions ktor/gradle/versions.gradle
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
ext {
// Koin
koin_version = '3.2.2'
koin_ktor_version = '3.2.2'
koin_version = '3.3.2'
koin_ktor_version = '3.3.0'
// Ktor
ktor_version = '2.0.3'
ktor_version = '2.2.1'

// Kotlin
kotlin_version = '1.6.21'
kotlin_version = '1.7.0'

// coroutines_version = "1.6.0"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,7 @@ class SLF4JLogger(level: Level = Level.INFO) : Logger(level) {

private val logger = LoggerFactory.getLogger(KOIN_TAG)

override fun log(level: Level, msg: MESSAGE) {
if (this.level <= level) {
logOnLevel(msg)
}
}

private fun logOnLevel(msg: MESSAGE) {
override fun display(level: Level, msg: MESSAGE) {
when (this.level) {
Level.DEBUG -> logger.debug(msg)
Level.INFO -> logger.info(msg)
Expand Down

0 comments on commit 4333174

Please sign in to comment.