8000 upgrade logging · jasync-sql/jasync-sql@32acfb9 · GitHub
[go: up one dir, main page]

Skip to content

Commit 32acfb9

Browse files
committed
upgrade logging
1 parent adf88af commit 32acfb9

File tree

48 files changed

+50
-50
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+50
-50
lines changed

db-async-common/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ dependencies {
1919
implementation("io.netty:netty-handler:$NETTY_VERSION")
2020
compileOnly("io.netty:netty-transport-native-epoll:$NETTY_VERSION:linux-x86_64")
2121
compileOnly("io.netty:netty-transport-native-kqueue:$NETTY_VERSION:osx-x86_64")
22-
implementation("io.github.microutils:kotlin-logging:$KOTLIN_LOGGING_VERSION")
22+
implementation("io.github.oshai:kotlin-logging-jvm:$KOTLIN_LOGGING_VERSION")
2323
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-jdk8:$KOTLIN_COROUTINES_VERSION")
2424
testImplementation("junit:junit:$JUNIT_VERSION")
2525
testImplementation("org.jetbrains.kotlin:kotlin-test-junit:$KOTLIN_VERSION")

db-async-common/src/main/java/com/github/jasync/sql/db/Configuration.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ package com.github.jasync.sql.db
33
import com.github.jasync.sql.db.interceptor.QueryInterceptor
44
import com.github.jasync.sql.db.util.ExecutorServiceUtils
55
import com.github.jasync.sql.db.util.NettyUtils
6+
import io.github.oshai.kotlinlogging.KotlinLogging
67
import io.netty.buffer.ByteBufAllocator
78
import io.netty.buffer.PooledByteBufAllocator
89
import io.netty.channel.EventLoopGroup
910
import io.netty.channel.nio.NioEventLoopGroup
1011
import io.netty.util.CharsetUtil
11-
import mu.KotlinLogging
1212
import java.nio.charset.Charset
1313
import java.nio.file.Path
1414
import java.time.Duration

db-async-common/src/main/java/com/github/jasync/sql/db/interceptor/Interceptors.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package com.github.jasync.sql.db.interceptor
22

33
import com.github.jasync.sql.db.QueryResult
44
import com.github.jasync.sql.db.util.mapTry
5-
import mu.KotlinLogging
5+
import io.github.oshai.kotlinlogging.KotlinLogging
66
import org.slf4j.MDC
77
import java.util.concurrent.CompletableFuture
88
import java.util.function.Supplier

db-async-common/src/main/java/com/github/jasync/sql/db/pool/ConnectionFactory.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import com.github.jasync.sql.db.interceptor.PreparedStatementParams
88
import com.github.jasync.sql.db.util.FP
99
import com.github.jasync.sql.db.util.Try
1010
import com.github.jasync.sql.db.util.map
11-
import mu.KotlinLogging
11+
import io.github.oshai.kotlinlogging.KotlinLogging
1212
import java.util.concurrent.CompletableFuture
1313

1414
private val logger = KotlinLogging.logger {}

db-async-common/src/main/java/com/github/jasync/sql/db/pool/ConnectionPool.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import com.github.jasync.sql.db.interceptor.wrapPreparedStatementWithInterceptor
99
import com.github.jasync.sql.db.interceptor.wrapQueryWithInterceptors
1010
import com.github.jasync.sql.db.util.FP
1111
import com.github.jasync.sql.db.util.mapAsync
12-
import mu.KotlinLogging
12+
import io.github.oshai.kotlinlogging.KotlinLogging
1313
import java.util.concurrent.CompletableFuture
1414

1515
private val logger = KotlinLogging.logger {}

db-async-common/src/main/java/com/github/jasync/sql/db/pool/TimeoutScheduler.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ package com.github.jasync.sql.db.pool
33
import com.github.jasync.sql.db.util.nullableMap
44
import com.github.jasync.sql.db.util.onCompleteAsync
55
import com.github.jasync.sql.db.util.tryFailure
6+
import io.github.oshai.kotlinlogging.KotlinLogging
67
import io.netty.channel.EventLoopGroup
7-
import mu.KotlinLogging
88
import java.time.Duration
99
import java.util.concurrent.CompletableFuture
1010
import java.util.concurrent.Executor

db-async-common/src/main/java/com/github/jasync/sql/db/util/AbstractURIParser.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package com.github.jasync.sql.db.util
33
import com.github.jasync.sql.db.Configuration
44
import com.github.jasync.sql.db.SSLConfiguration
55
import com.github.jasync.sql.db.exceptions.UnableToParseURLException
6-
import mu.KotlinLogging
6+
import io.github.oshai.kotlinlogging.KotlinLogging
77
import java.net.URI
88
import java.net.URISyntaxException
99
import java.net.URLDecoder

db-async-common/src/main/java/com/github/jasync/sql/db/util/NettyUtils.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package com.github.jasync.sql.db.util
22

33
import com.github.jasync.sql.db.Configuration
44
import com.github.jasync.sql.db.SSLConfiguration
5+
import io.github.oshai.kotlinlogging.KotlinLogging
56
import io.netty.channel.Channel
67
import io.netty.channel.EventLoopGroup
78
import io.netty.channel.epoll.Epoll
@@ -20,7 +21,6 @@ import io.netty.handler.ssl.SslContextBuilder
2021
import io.netty.handler.ssl.util.InsecureTrustManagerFactory
2122
import io.netty.util.internal.logging.InternalLoggerFactory
2223
import io.netty.util.internal.logging.Slf4JLoggerFactory
23-
import mu.KotlinLogging
2424
import java.io.FileInputStream
2525
import java.net.InetSocketAddress
2626
import java.net.SocketAddress

db-async-common/src/main/java/com/github/jasync/sql/db/util/PrintUtils.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
package com.github.jasync.sql.db.util
44

5+
import io.github.oshai.kotlinlogging.KotlinLogging
56
import io.netty.buffer.ByteBuf
6-
import mu.KotlinLogging
77

88
object PrintUtils {
99

gradle.properties

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,19 @@ KOTLIN_VERSION=1.8.21
22
KTLINT_VERSION=11.3.1
33
JACOCO_VERSION=0.8.8
44
KOTLIN_COROUTINES_VERSION=1.7.1
5-
SL4J_VERSION=1.7.25
5+
SL4J_VERSION=2.0.7
66
JODA_VERSION=2.12.5
77
JODA_CONVERT_VERSION=2.2.3
88
NETTY_VERSION=4.1.86.Final
9-
KOTLIN_LOGGING_VERSION=2.1.21
9+
KOTLIN_LOGGING_VERSION=4.0.0-beta-29
1010
SCRAM_CLIENT_VERSION=2.1
1111
R2DBC_SPI_VERSION=1.0.0.RELEASE
1212
REACTOR_CORE_VERSION=3.5.7
1313
REACTOR_KOTLIN_EXTENSION=1.2.2
1414
JUNIT_VERSION=4.13.2
1515
ASSERTJ_VERSION=3.23.1
1616
MOCKK_VERSION=1.9
17-
LOGBACK_VERSION=1.1.8
17+
LOGBACK_VERSION=1.4.8
1818
TEST_CONTAINERS_VERSION=1.17.6
1919
MYSQL_CONNECTOR_VERSION=5.1.47
2020
AWAITILITY_VERSION=3.1.5

mysql-async/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ dependencies {
2121
api("io.netty:netty-transport:$NETTY_VERSION")
2222
api("io.netty:netty-handler:$NETTY_VERSION")
2323
testImplementation("io.netty:netty-transport-native-epoll:$NETTY_VERSION:linux-x86_64")
24-
api("io.github.microutils:kotlin-logging:$KOTLIN_LOGGING_VERSION")
24+
api("io.github.oshai:kotlin-logging-jvm:$KOTLIN_LOGGING_VERSION")
2525
testImplementation("junit:junit:$JUNIT_VERSION")
2626
testImplementation("org.jetbrains.kotlin:kotlin-test-junit:$KOTLIN_VERSION")
2727
testImplementation("org.assertj:assertj-core:$ASSERTJ_VERSION")

mysql-async/src/main/java/com/github/jasync/sql/db/mysql/MySQLConnection.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ import com.github.jasync.sql.db.util.onFailureAsync
4343
import com.github.jasync.sql.db.util.parseVersion
4444
import com.github.jasync.sql.db.util.success
4545
import com.github.jasync.sql.db.util.toCompletableFuture
46+
import io.github.oshai.kotlinlogging.KotlinLogging
4647
import io.netty.channel.ChannelHandlerContext
4748
import io.netty.handler.ssl.SslHandler
48-
import mu.KotlinLogging
4949
import java.time.Duration
5050
import java.util.Optional
5151
import java.util.concurrent.CancellationException

mysql-async/src/main/java/com/github/jasync/sql/db/mysql/binary/BinaryRowDecoder.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import com.github.jasync.sql.db.exceptions.BufferNotFullyConsumedException
44
import com.github.jasync.sql.db.mysql.message.server.ColumnDefinitionMessage
55
import com.github.jasync.sql.db.util.BufferDumper
66
import com.github.jasync.sql.db.util.PrintUtils
7+
import io.github.oshai.kotlinlogging.KotlinLogging
78
import io.netty.buffer.ByteBuf
8-
import mu.KotlinLogging
99

1010
private val logger = KotlinLogging.logger {}
1111

mysql-async/src/main/java/com/github/jasync/sql/db/mysql/binary/decoder/TimestampDecoder.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package com.github.jasync.sql.db.mysql.binary.decoder
22

3+
import io.github.oshai.kotlinlogging.KotlinLogging
34
import io.netty.buffer.ByteBuf
4-
import mu.KotlinLogging
55
import java.time.LocalDateTime
66

77
private val logger = KotlinLogging.logger {}

mysql-async/src/main/java/com/github/jasync/sql/db/mysql/codec/MySQLConnectionHandler.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ import com.github.jasync.sql.db.util.length
3838
import com.github.jasync.sql.db.util.onFailure
3939
import com.github.jasync.sql.db.util.tail
4040
import com.github.jasync.sql.db.util.toCompletableFuture
41+
import io.github.oshai.kotlinlogging.KotlinLogging
4142
import io.netty.bootstrap.Bootstrap
4243
import io.netty.buffer.ByteBuf
4344
import io.netty.buffer.Unpooled
@@ -49,7 +50,6 @@ import io.netty.channel.ChannelOption
4950
import io.netty.channel.EventLoopGroup
5051
import io.netty.channel.SimpleChannelInboundHandler
5152
import io.netty.handler.codec.CodecException
52-
import mu.KotlinLogging
5353
import java.nio.ByteBuffer
5454
import java.util.concurrent.CompletableFuture
5555
import java.util.concurrent.Executor

mysql-async/src/main/java/com/github/jasync/sql/db/mysql/codec/MySQLFrameDecoder.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ import com.github.jasync.sql.db.mysql.message.server.ServerMessage
2525
import com.github.jasync.sql.db.util.BufferDumper
2626
import com.github.jasync.sql.db.util.ByteBufferUtils.read3BytesInt
2727
import com.github.jasync.sql.db.util.readBinaryLength
28+
import io.github.oshai.kotlinlogging.KotlinLogging
2829
import io.netty.buffer.ByteBuf
2930
import io.netty.channel.ChannelHandlerContext
3031
import io.netty.handler.codec.ByteToMessageDecoder
31-
import mu.KotlinLogging
3232
import java.nio.charset.Charset
3333
import java.util.concurrent.atomic.AtomicInteger
3434

mysql-async/src/main/java/com/github/jasync/sql/db/mysql/codec/MySQLOneToOneEncoder.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ import com.github.jasync.sql.db.mysql.message.client.ClientMessage
1414
import com.github.jasync.sql.db.mysql.util.CharsetMapper
1515
import com.github.jasync.sql.db.util.BufferDumper
1616
import com.github.jasync.sql.db.util.ByteBufferUtils
17+
import io.github.oshai.kotlinlogging.KotlinLogging
1718
import io.netty.buffer.ByteBuf
1819
import io.netty.channel.ChannelHandlerContext
1920
import io.netty.handler.codec.MessageToMessageEncoder
20-
import mu.KotlinLogging
2121
import java.nio.charset.Charset
2222

2323
class MySQLOneToOneEncoder(charset: Charset, charsetMapper: CharsetMapper) :

mysql-async/src/main/java/com/github/jasync/sql/db/mysql/codec/SendLongDataEncoder.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ package com.github.jasync.sql.db.mysql.codec
33
import com.github.jasync.sql.db.mysql.message.client.ClientMessage
44
import com.github.jasync.sql.db.mysql.message.client.SendLongDataMessage
55
import com.github.jasync.sql.db.util.ByteBufferUtils
6+
import io.github.oshai.kotlinlogging.KotlinLogging
67
import io.netty.buffer.Unpooled
78
import io.netty.channel.ChannelHandlerContext
89
import io.netty.handler.codec.MessageToMessageEncoder
9-
import mu.KotlinLogging
1010

1111
private val logger = KotlinLogging.logger {}
1212

mysql-async/src/main/java/com/github/jasync/sql/db/mysql/decoder/HandshakeV10Decoder.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ import com.github.jasync.sql.db.mysql.util.CapabilityFlag.CLIENT_PLUGIN_AUTH
77
import com.github.jasync.sql.db.mysql.util.CapabilityFlag.CLIENT_SECURE_CONNECTION
88
import com.github.jasync.sql.db.util.readCString
99
import com.github.jasync.sql.db.util.readUntilEOF
10+
import io.github.oshai.kotlinlogging.KotlinLogging
1011
import io.netty.buffer.ByteBuf
1112
import io.netty.util.CharsetUtil
12-
import mu.KotlinLogging
1313
import kotlin.experimental.and
1414

1515
private val logger = KotlinLogging.logger {}

mysql-async/src/main/java/com/github/jasync/sql/db/mysql/decoder/PreparedStatementPrepareResponseDecoder.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ package com.github.jasync.sql.db.mysql.decoder
33
import com.github.jasync.sql.db.mysql.message.server.PreparedStatementPrepareResponse
44
import com.github.jasync.sql.db.mysql.message.server.ServerMessage
55
import com.github.jasync.sql.db.util.BufferDumper.dumpAsHex
6+
import io.github.oshai.kotlinlogging.KotlinLogging
67
import io.netty.buffer.ByteBuf
7-
import mu.KotlinLogging
88

99
private val logger = KotlinLogging.logger {}
1010

mysql-async/src/main/java/com/github/jasync/sql/db/mysql/encoder/auth/Sha256PasswordAuthentication.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package com.github.jasync.sql.db.mysql.encoder.auth
22

33
import com.github.jasync.sql.db.SSLConfiguration
44
import com.github.jasync.sql.db.util.length
5-
import mu.KotlinLogging
5+
import io.github.oshai.kotlinlogging.KotlinLogging
66
import java.nio.charset.Charset
77
import java.nio.file.Files
88
import java.nio.file.Path

mysql-async/src/main/java/com/github/jasync/sql/db/mysql/pool/MySQLConnectionFactory.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package com.github.jasync.sql.db.mysql.pool
33
import com.github.jasync.sql.db.Configuration
44
import com.github.jasync.sql.db.mysql.MySQLConnection
55
import com.github.jasync.sql.db.pool.ConnectionFactory
6-
import mu.KotlinLogging
6+
import io.github.oshai.kotlinlogging.KotlinLogging
77
import java.util.concurrent.CompletableFuture
88

99
private val logger = KotlinLogging.logger {}

mysql-async/src/test/java/com/github/jasync/sql/db/mysql/ConcurrentlyRunTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package com.github.jasync.sql.db.mysql
22

33
import com.github.jasync.sql.db.RowData
4-
import mu.KotlinLogging
4+
import io.github.oshai.kotlinlogging.KotlinLogging
55
import java.util.concurrent.atomic.AtomicInteger
66

77
private val logger = KotlinLogging.logger {}

pool-async/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ dependencies {
1414
api("org.jetbrains.kotlin:kotlin-reflect:$KOTLIN_VERSION")
1515
api("org.jetbrains.kotlinx:kotlinx-coroutines-core:$KOTLIN_COROUTINES_VERSION")
1616
implementation("org.slf4j:slf4j-api:$SL4J_VERSION")
17-
implementation("io.github.microutils:kotlin-logging:$KOTLIN_LOGGING_VERSION")
17+
implementation("io.github.oshai:kotlin-logging-jvm:$KOTLIN_LOGGING_VERSION")
1818
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-jdk8:$KOTLIN_COROUTINES_VERSION")
1919
testImplementation("junit:junit:$JUNIT_VERSION")
2020
testImplementation("org.jetbrains.kotlin:kotlin-test-junit:$KOTLIN_VERSION")

pool-async/src/main/java/com/github/jasync/sql/db/pool/ActorBasedObjectPool.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ import com.github.jasync.sql.db.util.failed
88
import com.github.jasync.sql.db.util.map
99
import com.github.jasync.sql.db.util.mapTry
1010
import com.github.jasync.sql.db.util.onComplete
11+
import io.github.oshai.kotlinlogging.KotlinLogging
1112
import kotlinx.coroutines.CoroutineScope
1213
import kotlinx.coroutines.CoroutineStart
1314
import kotlinx.coroutines.SupervisorJob
1415
import kotlinx.coroutines.cancel
1516
import kotlinx.coroutines.channels.SendChannel
1617
import kotlinx.coroutines.channels.actor
17-
import mu.KotlinLogging
1818
import java.util.LinkedList
1919
import java.util.Queue
2020
import java.util.WeakHashMap

postgis-jasync/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ dependencies {
2525
api("joda-time:joda-time:$JODA_VERSION")
2626
api("io.netty:netty-transport:$NETTY_VERSION")
2727
api("io.netty:netty-handler:$NETTY_VERSION")
28-
api("io.github.microutils:kotlin-logging:$KOTLIN_LOGGING_VERSION")
28+
api("io.github.oshai:kotlin-logging-jvm:$KOTLIN_LOGGING_VERSION")
2929
api("com.ongres.scram:client:$SCRAM_CLIENT_VERSION")
3030
api("org.threeten:threeten-extra:$THREETEN_EXTRA")
3131
testImplementation("junit:junit:$JUNIT_VERSION")

postgis-jasync/src/main/java/com/github/jasync/sql/db/postgis/JasyncPostgisRegister.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import com.github.jasync.sql.db.Connection
44
import com.github.jasync.sql.db.postgresql.column.PostgreSQLColumnDecoderRegistry
55
import com.github.jasync.sql.db.util.FP
66
import com.github.jasync.sql.db.util.map
7-
import mu.KotlinLogging
7+
import io.github.oshai.kotlinlogging.KotlinLogging
88
import java.util.concurrent.CompletableFuture
99
import java.util.concurrent.atomic.AtomicBoolean
1010

postgis-jasync/src/test/java/ContainerHelper.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package com.github.aysnc.sql.db.integration
22

33
import com.github.jasync.sql.db.Configuration
44
import com.github.jasync.sql.db.postgresql.PostgreSQLConnection
5-
import mu.KotlinLogging
5+
import io.github.oshai.kotlinlogging.KotlinLogging
66
import org.testcontainers.containers.BindMode
77
import org.testcontainers.containers.PostgreSQLContainer
88
import org.testcontainers.utility.DockerImageName

postgresql-async/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ dependencies {
2323
api("joda-time:joda-time:$JODA_VERSION")
2424
api("io.netty:netty-transport:$NETTY_VERSION")
2525
api("io.netty:netty-handler:$NETTY_VERSION")
26-
api("io.github.microutils:kotlin-logging:$KOTLIN_LOGGING_VERSION")
26+
api("io.github.oshai:kotlin-logging-jvm:$KOTLIN_LOGGING_VERSION")
2727
api("com.ongres.scram:client:$SCRAM_CLIENT_VERSION")
2828
api("org.threeten:threeten-extra:$THREETEN_EXTRA")
2929
testImplementation("junit:junit:$JUNIT_VERSION")

postgresql-async/src/main/java/com/github/jasync/sql/db/postgresql/PostgreSQLConnection.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ import com.ongres.scram.client.ScramClient
6161
import com.ongres.scram.client.ScramSession
6262
import com.ongres.scram.common.exception.ScramException
6363
import com.ongres.scram.common.stringprep.StringPreparations
64-
import mu.KotlinLogging
64+
import io.github.oshai.kotlinlogging.KotlinLogging
6565
import java.time.Duration
6666
import java.util.Collections
6767
import java.util.Optional

postgresql-async/src/main/java/com/github/jasync/sql/db/postgresql/codec/MessageDecoder.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ import com.github.jasync.sql.db.postgresql.messages.backend.ServerMessage
77
import com.github.jasync.sql.db.postgresql.parsers.AuthenticationStartupParser
88
import com.github.jasync.sql.db.postgresql.parsers.MessageParsersRegistry
99
import com.github.jasync.sql.db.util.BufferDumper
10+
import io.github.oshai.kotlinlogging.KotlinLogging
1011
import io.netty.buffer.ByteBuf
1112
import io.netty.channel.ChannelHandlerContext
1213
import io.netty.handler.codec.ByteToMessageDecoder
13-
import mu.KotlinLogging
1414
import java.nio.charset.Charset
1515

1616
private val logger = KotlinLogging.logger {}

postgresql-async/src/main/java/com/github/jasync/sql/db/postgresql/codec/MessageEncoder.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ import com.github.jasync.sql.db.postgresql.messages.frontend.ClientMessage
1515
import com.github.jasync.sql.db.postgresql.messages.frontend.SSLRequestMessage
1616
import com.github.jasync.sql.db.postgresql.messages.frontend.StartupMessage
1717
import com.github.jasync.sql.db.util.BufferDumper
18+
import io.github.oshai.kotlinlogging.KotlinLogging
1819
import io.netty.channel.ChannelHandlerContext
1920
import io.netty.handler.codec.MessageToMessageEncoder
20-
import mu.KotlinLogging
2121
import java.nio.charset.Charset
2222

2323
private val logger = KotlinLogging.logger {}

postgresql-async/src/main/java/com/github/jasync/sql/db/postgresql/codec/PostgreSQLConnectionHandler.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ import com.github.jasync.sql.db.util.onCompleteAsync
2727
import com.github.jasync.sql.db.util.onFailure
2828
import com.github.jasync.sql.db.util.success
2929
import com.github.jasync.sql.db.util.toCompletableFuture
30+
import io.github.oshai.kotlinlogging.KotlinLogging
3031
import io.netty.bootstrap.Bootstrap
3132
import io.netty.channel.Channel
3233
import io.netty.channel.ChannelHandlerContext
@@ -36,7 +37,6 @@ import io.netty.channel.EventLoopGroup
3637
import io.netty.channel.SimpleChannelInboundHandler
3738
import io.netty.handler.codec.CodecException
3839
import io.netty.handler.ssl.SslHandler
39-
import mu.KotlinLogging
4040
import java.util.concurrent.CompletableFuture
4141
import java.util.concurrent.Executor
4242

postgresql-async/src/main/java/com/github/jasync/sql/db/postgresql/column/PostgreSQLColumnDecoderRegistry.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ import com.github.jasync.sql.db.column.TimeEncoderDecoder
1515
import com.github.jasync.sql.db.column.TimeWithTimezoneEncoderDecoder
1616
import com.github.jasync.sql.db.column.UUIDEncoderDecoder
1717
import com.github.jasync.sql.db.general.ColumnData
18+
import io.github.oshai.kotlinlogging.KotlinLogging
1819
import io.netty.buffer.ByteBuf
1920
import io.netty.util.CharsetUtil
20-
import mu.KotlinLogging
2121
import java.nio.charset.Charset
2222

2323
private val logger = KotlinLogging.logger {}

postgresql-async/src/main/java/com/github/jasync/sql/db/postgresql/column/PostgreSQLColumnEncoderRegistry.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ import com.github.jasync.sql.db.column.TimeEncoderDecoder
1616
import com.github.jasync.sql.db.column.TimestampEncoderDecoder
1717
import com.github.jasync.sql.db.column.TimestampWithTimezoneEncoderDecoder
1818
import com.github.jasync.sql.db.column.UUIDEncoderDecoder
19+
import io.github.oshai.kotlinlogging.KotlinLogging
1920
import io.netty.buffer.ByteBuf
20-
import mu.KotlinLogging
2121
import org.threeten.extra.PeriodDuration
2222
import java.math.BigDecimal
2323
import java.nio.ByteBuffer

postgresql-async/src/main/java/com/github/jasync/sql/db/postgresql/encoders/CloseStatementEncoder.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ package com.github.jasync.sql.db.postgresql.encoders
22

33
import com.github.jasync.sql.db.postgresql.messages.frontend.ClientMessage
44
import com.github.jasync.sql.db.postgresql.messages.frontend.PreparedStatementCloseMessage
5+
import io.github.oshai.kotlinlogging.KotlinLogging
56
import io.netty.buffer.ByteBuf
6-
import mu.KotlinLogging
77
import java.nio.charset.Charset
88

99
private val logger = KotlinLogging.logger {}

0 commit comments

Comments
 (0)
0