Skip to content

Instantly share code, notes, and snippets.

@indexzero
Created January 22, 2012 09:03
Show Gist options
  • Save indexzero/1656333 to your computer and use it in GitHub Desktop.
Save indexzero/1656333 to your computer and use it in GitHub Desktop.
Find the source of your `sys` deprecation warnings in [email protected]
//
// 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