mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
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:
@@ -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', {
|
||||
|
||||
Reference in New Issue
Block a user