MXS-1300: Disable all output with --quiet

As the option is currently only used for testing, it's better to have it
produce no output at all.
This commit is contained in:
Markus Mäkelä
2017-07-14 19:29:02 +03:00
parent 738dc48df7
commit 18f05578c3
2 changed files with 3 additions and 2 deletions

View File

@ -26,7 +26,8 @@ module.exports = function() {
this.maxctrl = function(argv) {
if (argv.quiet) {
this.logger = new consoleLib.Console(fs.createWriteStream('/dev/null'), process.stderr)
this.logger = new consoleLib.Console(fs.createWriteStream('/dev/null'),
fs.createWriteStream('/dev/null'))
}
this.argv = argv