Skip to content

Commit 8756134

Browse files
committed
Removing application name from PostgreSQL connection - fixes mauricio#70
1 parent fa67bc8 commit 8756134

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

postgresql-async/src/main/scala/com/github/mauricio/async/db/postgresql/PostgreSQLConnection.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ import scala.concurrent._
3333
import io.netty.channel.EventLoopGroup
3434

3535
object PostgreSQLConnection {
36-
val log = Log.get[PostgreSQLConnection]
3736
val Counter = new AtomicLong()
3837
val ServerVersionKey = "server_version"
3938
}
@@ -60,6 +59,7 @@ class PostgreSQLConnection
6059
executionContext
6160
)
6261
private final val currentCount = Counter.incrementAndGet()
62+
private final val log = Log.getByName(s"${this.getClass.getName}:${currentCount}")
6363
private final val preparedStatementsCounter = new AtomicInteger()
6464
private final implicit val internalExecutionContext = executionContext
6565

postgresql-async/src/main/scala/com/github/mauricio/async/db/postgresql/codec/PostgreSQLConnectionHandler.scala

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@ import com.github.mauricio.async.db.util._
2626
import java.net.InetSocketAddress
2727
import scala.annotation.switch
2828
import scala.concurrent._
29-
import scala.util.Failure
30-
import scala.util.Success
3129
import io.netty.channel._
3230
import io.netty.bootstrap.Bootstrap
3331
import io.netty.channel
@@ -62,7 +60,6 @@ class PostgreSQLConnectionHandler
6260
private val properties = List(
6361
"user" -> configuration.username,
6462
"database" -> configuration.database,
65-
"application_name" -> "Netty-PostgreSQL-driver-0.1.2-SNAPSHOT",
6663
"client_encoding" -> configuration.charset.name(),
6764
"DateStyle" -> "ISO",
6865
"extra_float_digits" -> "2")

0 commit comments

Comments
 (0)