-
-
Save antonybudianto/312db08fa9c6c9201586bdb765aa6cf1 to your computer and use it in GitHub Desktop.
Override console.warn to log so that it is not aliased to error
This file contains hidden or 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
const _log = console.log; | |
global.console.warn = function() { | |
_log.apply(null, arguments); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment