2014-03-12 09:08:52 -07:00
|
|
|
'use strict';
|
|
|
|
|
|
|
|
var backup = console.log;
|
2014-03-12 11:21:46 -07:00
|
|
|
var ebackup = console.error;
|
2014-03-12 09:08:52 -07:00
|
|
|
var nop = function() {};
|
|
|
|
var mute = function() {
|
|
|
|
console.log = nop;
|
2014-03-12 11:21:46 -07:00
|
|
|
console.error = nop;
|
2014-03-12 09:08:52 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
var unmute = function() {
|
|
|
|
console.log = backup;
|
2014-03-12 11:21:46 -07:00
|
|
|
console.error = ebackup;
|
2014-03-12 09:08:52 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
module.exports.mute = mute;
|
|
|
|
module.exports.unmute = unmute;
|