You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
308 B
17 lines
308 B
'use strict';
|
|
|
|
var backup = console.log;
|
|
var ebackup = console.error;
|
|
var nop = function() {};
|
|
var mute = function() {
|
|
console.log = nop;
|
|
console.error = nop;
|
|
};
|
|
|
|
var unmute = function() {
|
|
console.log = backup;
|
|
console.error = ebackup;
|
|
};
|
|
|
|
module.exports.mute = mute;
|
|
module.exports.unmute = unmute;
|
|
|