Skip to content

Commit

Permalink
logging av låsing bør være opt-in
Browse files Browse the repository at this point in the history
  • Loading branch information
rtc11 committed Oct 29, 2024
1 parent a7e54c6 commit e8e1ae0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libs/jdbc/main/libs/postgres/concurrency/Lock.kt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ suspend fun tryLock(on: String): Boolean = transaction {
val query = "SELECT PG_TRY_ADVISORY_LOCK(${on.hashCode()})"
coroutineContext.connection.prepareStatement(query).use { stmt ->
stmt.execute().also {
jdbcLog.info("Locked $on")
jdbcLog.debug("Locked $on")
}
}
}
Expand All @@ -20,7 +20,7 @@ suspend fun unlock(on: String): Boolean = transaction {
val query = "SELECT PG_ADVISORY_UNLOCK(${on.hashCode()})"
coroutineContext.connection.prepareStatement(query).use { stmt ->
stmt.execute().also {
jdbcLog.info("Unlocked $on")
jdbcLog.debug("Unlocked $on")
}
}
}
Expand Down

0 comments on commit e8e1ae0

Please sign in to comment.