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');