Skip to content

Commit

Permalink
reporting leak message change #190
Browse files Browse the repository at this point in the history
  • Loading branch information
rusher committed May 18, 2022
1 parent 23041b8 commit 4a9138c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lib/pool.js
Expand Up @@ -148,9 +148,11 @@ class Pool extends EventEmitter {
conn.leakProcess = setTimeout(
(conn) => {
console.log(
`Possible connection leak on thread ${conn.info.threadId} (connection not returned to pool since ${
Date.now() - conn.lastUse
}ms. Did connection.released() been implemented`
'A possible connection leak on the thread ' +
conn.info.threadId +
' (the connection not returned to the pool since ' +
(Date.now() - conn.lastUse) +
'ms). Has the connection.release() been called ?'
);
conn.leaked = true;
},
Expand Down

0 comments on commit 4a9138c

Please sign in to comment.