From 4d72fa1da07908e77ecfdddc25f7d4501bb7e705 Mon Sep 17 00:00:00 2001 From: Sebastian Alfers Date: Thu, 21 Mar 2024 15:25:16 +0100 Subject: [PATCH] fix: use val for logging in all SqlServer daos (#534) --- .../r2dbc/internal/sqlserver/SqlServerDurableStateDao.scala | 2 +- .../r2dbc/internal/sqlserver/SqlServerJournalDao.scala | 2 +- .../r2dbc/internal/sqlserver/SqlServerQueryDao.scala | 2 +- .../r2dbc/internal/sqlserver/SqlServerSnapshotDao.scala | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/core/src/main/scala/akka/persistence/r2dbc/internal/sqlserver/SqlServerDurableStateDao.scala b/core/src/main/scala/akka/persistence/r2dbc/internal/sqlserver/SqlServerDurableStateDao.scala index 8d79f6a0..911ce6aa 100644 --- a/core/src/main/scala/akka/persistence/r2dbc/internal/sqlserver/SqlServerDurableStateDao.scala +++ b/core/src/main/scala/akka/persistence/r2dbc/internal/sqlserver/SqlServerDurableStateDao.scala @@ -30,7 +30,7 @@ import akka.persistence.r2dbc.internal.Sql */ @InternalApi private[r2dbc] object SqlServerDurableStateDao { - private def log: Logger = LoggerFactory.getLogger(classOf[SqlServerDurableStateDao]) + private val log: Logger = LoggerFactory.getLogger(classOf[SqlServerDurableStateDao]) } /** diff --git a/core/src/main/scala/akka/persistence/r2dbc/internal/sqlserver/SqlServerJournalDao.scala b/core/src/main/scala/akka/persistence/r2dbc/internal/sqlserver/SqlServerJournalDao.scala index db8de98a..6803f38f 100644 --- a/core/src/main/scala/akka/persistence/r2dbc/internal/sqlserver/SqlServerJournalDao.scala +++ b/core/src/main/scala/akka/persistence/r2dbc/internal/sqlserver/SqlServerJournalDao.scala @@ -21,7 +21,7 @@ import akka.persistence.r2dbc.internal.postgres.PostgresJournalDao */ @InternalApi private[r2dbc] object SqlServerJournalDao { - private def log: Logger = LoggerFactory.getLogger(classOf[SqlServerJournalDao]) + private val log: Logger = LoggerFactory.getLogger(classOf[SqlServerJournalDao]) val TRUE = "1" } diff --git a/core/src/main/scala/akka/persistence/r2dbc/internal/sqlserver/SqlServerQueryDao.scala b/core/src/main/scala/akka/persistence/r2dbc/internal/sqlserver/SqlServerQueryDao.scala index 6f2f9c48..0ea71bea 100644 --- a/core/src/main/scala/akka/persistence/r2dbc/internal/sqlserver/SqlServerQueryDao.scala +++ b/core/src/main/scala/akka/persistence/r2dbc/internal/sqlserver/SqlServerQueryDao.scala @@ -27,7 +27,7 @@ import akka.persistence.r2dbc.internal.postgres.PostgresQueryDao */ @InternalApi private[r2dbc] object SqlServerQueryDao { - private def log: Logger = LoggerFactory.getLogger(classOf[SqlServerQueryDao]) + private val log: Logger = LoggerFactory.getLogger(classOf[SqlServerQueryDao]) } diff --git a/core/src/main/scala/akka/persistence/r2dbc/internal/sqlserver/SqlServerSnapshotDao.scala b/core/src/main/scala/akka/persistence/r2dbc/internal/sqlserver/SqlServerSnapshotDao.scala index db753f41..0e29adc3 100644 --- a/core/src/main/scala/akka/persistence/r2dbc/internal/sqlserver/SqlServerSnapshotDao.scala +++ b/core/src/main/scala/akka/persistence/r2dbc/internal/sqlserver/SqlServerSnapshotDao.scala @@ -30,7 +30,7 @@ import akka.persistence.r2dbc.internal.postgres.PostgresSnapshotDao */ @InternalApi private[r2dbc] object SqlServerSnapshotDao { - private def log: Logger = LoggerFactory.getLogger(classOf[SqlServerSnapshotDao]) + private val log: Logger = LoggerFactory.getLogger(classOf[SqlServerSnapshotDao]) } /**