Skip to content

Instantly share code, notes, and snippets.

@t8g
Forked from indexzero/include.js
Created January 23, 2012 07:50
Show Gist options
  • Save t8g/1661508 to your computer and use it in GitHub Desktop.
Save t8g/1661508 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