-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Calling connection.release() outputs to console #706
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Have you tried using |
Ah wait, you're saying you're using |
Yes, I'm using `var pool = mysql.createPool({ |
What version of this module are you using? The current version (function (pc) {
var end = pc.end;
pc.end = function () { console.warn(new Error().stack); return end.apply(this, arguments); };
}(require('mysql/lib/PoolConnection')); |
Another way to get the trace is at the beginning of your server, do something like |
I'm using version 2.0.0-rc1. Was it present in that version? |
Nope. Please try one of the options above to trace it back. If it actually traces back to a |
(embarassed) We can close this issue. I found a hidden call to |
No problem. It can be hard to find it easily. Glad the trace helped you pinpoint it. |
@dougwilson - there is |
Thanks, @sidorares, but my comment after that was to do |
oops, my bad, sorry - missed that next comment |
After starting to use connection pooling in my server I noticed that every time I close a connection using
.release()
I get the following message in my output:Calling conn.end() to release a pooled connection is deprecated. In next version calling conn.end() will be restored to default conn.end() behavior. Use conn.re lease() instead.
This is filling up my output logs. I should be able to silence this sort of thing.
The text was updated successfully, but these errors were encountered: