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
Add trace to 'Deprecated' message #1369
Comments
This a reasonable request. Could be integrated with RedisClient.prototype.warn as a one-liner by using |
Wouldn't the const trace=new Error(msg);
process.nextTick(function () {
if(...) {
self.emit('warning',trace);
} else {
console.warn(trace);
}
}); I can do a PR if thats ok |
Good point. I think it would still tell you the location but it wouldn't be at the top level of the trace. Need to think on it, but if you have a suggestion, let's hear it. |
+1 on this. sometimes it s tricky to find the code leading to this warning. |
Yes, or a way to disable these deprecation warnings on production, a real crash will produce a stack trace anyway if an upgraded version ever actually comes out! These messages fill up my server logs! |
Feature request:
When it shows a message like:
It is hard to find where the issue is coming from. It would be useful to have a stack trace generated every time this happens. Especially if the dev has no choice over what redis version is used.
The text was updated successfully, but these errors were encountered: