mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-12-06 17:27:59 +00:00
Object logging
This commit is contained in:
@@ -304,7 +304,7 @@ Remote.prototype.serverFatal = function() {
|
|||||||
// Set the emitted state: 'online' or 'offline'
|
// Set the emitted state: 'online' or 'offline'
|
||||||
Remote.prototype._setState = function(state) {
|
Remote.prototype._setState = function(state) {
|
||||||
if (this.state !== state) {
|
if (this.state !== state) {
|
||||||
this._trace('remote: set_state: %s', state);
|
this._trace('remote: set_state:', state);
|
||||||
|
|
||||||
this.state = state;
|
this.state = state;
|
||||||
|
|
||||||
@@ -454,7 +454,7 @@ Remote.prototype._handleMessage = function(message, server) {
|
|||||||
this._received_tx[hash] = true;
|
this._received_tx[hash] = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
this._trace('remote: tx: %s', message);
|
this._trace('remote: tx:', message);
|
||||||
|
|
||||||
if (message.meta) {
|
if (message.meta) {
|
||||||
// Process metadata
|
// Process metadata
|
||||||
@@ -518,7 +518,7 @@ Remote.prototype._handleMessage = function(message, server) {
|
|||||||
|
|
||||||
// All other messages
|
// All other messages
|
||||||
default:
|
default:
|
||||||
this._trace('remote: ' + message.type + ': %s', message);
|
this._trace('remote: ' + message.type + ': ', message);
|
||||||
this.emit('net_' + message.type, message);
|
this.emit('net_' + message.type, message);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user