From 0b9971d0d08bfee14931ec4782ce93f3b105cee1 Mon Sep 17 00:00:00 2001 From: Stefan Thomas Date: Fri, 9 Nov 2012 16:54:14 -0800 Subject: [PATCH] More consistent trace logs. Remove redundant trace. The trace on transaction submit is always immediately followed by a trace showing the request, which contains the same information anyway. --- src/js/remote.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/js/remote.js b/src/js/remote.js index c87e9d924..7aebe09dc 100644 --- a/src/js/remote.js +++ b/src/js/remote.js @@ -430,12 +430,12 @@ Remote.prototype._connect_message = function (ws, json) { unexpected = true; } else if ('success' === message.status) { - if (this.trace) console.log("message: %s", json); + if (this.trace) console.log("remote: response: %s", json); request.emit('success', message.result); } else if (message.error) { - if (this.trace) console.log("message: %s", json); + if (this.trace) console.log("remote: error: %s", json); request.emit('error', { 'error' : 'remoteError', @@ -634,8 +634,6 @@ Remote.prototype.request_transaction_entry = function (hash) { Remote.prototype.submit = function (transaction) { var self = this; - if (this.trace) console.log("remote: submit: %s", JSON.stringify(transaction.tx_json)); - if (transaction.secret && !this.trusted) { transaction.emit('error', {