-
-
Save t8g/1661508 to your computer and use it in GitHub Desktop.
Find the source of your `sys` deprecation warnings in [email protected]
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Place this at the beginning of your node.js program before | |
// **any and all** require statements. | |
// | |
var util = require('util'); | |
var _warning = util._deprecationWarning; | |
util._deprecationWarning = function () { | |
console.trace(); | |
_warning.apply(util, arguments); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment