8000 Including message tracing for MySQL as well · mauricio/postgresql-async@b4e319c · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Dec 3, 2019. It is now read-only.

Commit b4e319c

Browse files
committed
Including message tracing for MySQL as well
1 parent 40b06b5 commit b4e319c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

mysql-async/src/main/scala/com/github/mauricio/async/db/mysql/codec/MySQLFrameDecoder.scala

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,12 @@ class MySQLFrameDecoder(charset: Charset, connectionId : String) extends ByteToM
7979
//val dump = MySQLHelper.dumpAsHex(slice)
8080
//log.debug(s"[${messagesCount.get()}] Dump of message is - $messageType - $size isInQuery $isInQuery processingColumns $processingColumns processedColumns $processedColumns processingParams $processingParams processedParams $processedParams \n{}", dump)
8181

82+
if ( log.isTraceEnabled ) {
83+
log.trace(s"Message received is $messageType - " +
84+
s"(count=$messagesCount,size=$size,isInQuery=$isInQuery,processingColumns=$processingColumns,processingParams=$processingParams,processedColumns=$processedColumns,processedParams=$processedParams)" +
85+
s"\n${BufferDumper.dumpAsHex(buffer)}}")
86+
}
87+
8288
slice.readByte()
8389

8490
val decoder = messageType match {

0 commit comments

Comments
 (0)
0