Skip to content

Commit

Permalink
chore: include session min/max in error message
Browse files Browse the repository at this point in the history
  • Loading branch information
olavloite committed Dec 18, 2024
1 parent 56938e7 commit e119202
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 e119202

Please sign in to comment.