From 8e09b40257f5b4d0ab2f3f06c03163797c70112c Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Wed, 29 Oct 2014 16:01:54 -0700 Subject: [PATCH] add silent option. --- lib/bitcoind.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/bitcoind.js b/lib/bitcoind.js index dafb4f1c..2f28deaf 100644 --- a/lib/bitcoind.js +++ b/lib/bitcoind.js @@ -371,6 +371,7 @@ Bitcoin.prototype.getMiningInfo = function() { Bitcoin.prototype.log = Bitcoin.prototype.info = function() { + if (this.options.silent) return; if (typeof arguments[0] !== 'string') { var out = util.inspect(arguments[0], null, 20, true); return process.stdout.write('bitcoind.js: ' + out + '\n'); @@ -380,6 +381,7 @@ Bitcoin.prototype.info = function() { }; Bitcoin.prototype.error = function() { + if (this.options.silent) return; if (typeof arguments[0] !== 'string') { var out = util.inspect(arguments[0], null, 20, true); return process.stderr.write('bitcoind.js: ' + out + '\n');