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.
This commit is contained in:
Stefan Thomas
2012-11-09 16:54:14 -08:00
parent 00bb9d99a7
commit 0b9971d0d0

View File

@@ -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', {