Skip to content

Commit

Permalink
refactor/tweaked the error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
hongwei1 committed Sep 22, 2023
1 parent 9258a6c commit cb41c63
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions obp-api/src/main/scala/bootstrap/liftweb/CustomDBVendor.scala
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,9 @@ trait CustomProtoDBVendor extends ConnectionManager {

case Nil => //freePool is empty and we are at maxPoolSize limit
wait(50L)
logger.error(s"The (freePool.size + usedPool.size) is expanding to maxPoolSize ($maxPoolSize), we can not create new connection, need to restart OBP now.")
logger.error(s"The (freePool.size + usedPool.size) is at the limit ($maxPoolSize) and there are no free connections.")
(
Failure(s"Database may be down, please check database connection! OBP already create $maxPoolSize connections, because all connections are occupied!"),
Failure(s"The (freePool.size + usedPool.size) is at the limit ($maxPoolSize) and there are no free connections."),
true
)

Expand Down

0 comments on commit cb41c63

Please sign in to comment.