8000 Don't create a unique named logger per connection it causes a slow me… · IGOpen/postgresql-async@80876ee · GitHub
[go: up one dir, main page]

Skip to content

Commit 80876ee

Browse files
committed
Don't create a unique named logger per connection it causes a slow memory leak
1 parent 20fda4c commit 80876ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
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
@@ -60,7 +60,7 @@ class PostgreSQLConnection
6060
executionContext
6161
)
6262
private final val currentCount = Counter.incrementAndGet()
63-
private final val log = Log.getByName(s"${this.getClass.getName}:${currentCount}")
63+
private final val log = Log.getByName(s"${this.getClass.getName}")
6464
private final val preparedStatementsCounter = new AtomicInteger()
6565
private final implicit val internalExecutionContext = executionContext
6666

0 commit comments

Comments
 (0)
0