Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upAdd 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.