Skip to content

Commit 2aa1d70

Browse files
committed
Reword "recovering leaked sessions" log message.
The previous message implied the possible existence of leaked sessions, and could be confusing/alarming when reading log files. The new message is intended to imply that there could be some leaked sessions (but there may very well be none) and that detecting them will take a small amount of work.
1 parent 813e309 commit 2aa1d70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/MySqlConnector/Core/ConnectionPool.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public async ValueTask<ServerSession> GetSessionAsync(MySqlConnection connection
2828
// on the lock in RecoverLeakedSessions in high-concurrency situations
2929
if (IsEmpty && unchecked(((uint) Environment.TickCount) - m_lastRecoveryTime) >= 1000u)
3030
{
31-
Log.Info("Pool{0} is empty; recovering leaked sessions", m_logArguments);
31+
Log.Info("Pool{0} is empty; scanning for any leaked sessions", m_logArguments);
3232
await RecoverLeakedSessionsAsync(ioBehavior).ConfigureAwait(false);
3333
}
3434

0 commit comments

Comments
 (0)