Skip to content

Commit

Permalink
chore: include session min/max in error message (#3566)
Browse files Browse the repository at this point in the history
  • Loading branch information
olavloite authored Dec 18, 2024
1 parent 56938e7 commit 3dc290a
Showing 1 changed file with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2831,10 +2831,13 @@ private StringBuilder createCheckedOutSessionsStackTraces() {
// Create the error message without holding the lock, as we are potentially looping through a
// large set, and analyzing a large number of stack traces.
StringBuilder stackTraces =
new StringBuilder(
"There are currently "
+ currentlyCheckedOutSessions.size()
+ " sessions checked out:\n\n");
new StringBuilder("MinSessions: ")
.append(options.getMinSessions())
.append("\nMaxSessions: ")
.append(options.getMaxSessions())
.append("\nThere are currently ")
.append(currentlyCheckedOutSessions.size())
.append(" sessions checked out:\n\n");
if (options.isTrackStackTraceOfSessionCheckout()) {
for (PooledSessionFuture session : currentlyCheckedOutSessions) {
if (session.leakedException != null) {
Expand Down

0 comments on commit 3dc290a

Please sign in to comment.