clean logs and remove unnecesary code
This commit is contained in:
parent
97882f8e3b
commit
96c8867762
4 changed files with 9 additions and 13 deletions
|
|
@ -202,12 +202,12 @@ Network.prototype._onMessage = function(enc) {
|
|||
this._deletePeer(sender);
|
||||
return;
|
||||
}
|
||||
log.debug('Async: receiving ' + JSON.stringify(payload));
|
||||
|
||||
if (this.ignoreMessageFromTs && this.ignoreMessageFromTs === enc.ts) {
|
||||
log.debug('Ignoring message from ', enc.ts);
|
||||
log.debug('Ignoring trailing message. Ts:', enc.ts);
|
||||
return;
|
||||
}
|
||||
log.debug('Async: receiving ' + JSON.stringify(payload));
|
||||
|
||||
var self = this;
|
||||
switch (payload.type) {
|
||||
|
|
@ -352,7 +352,7 @@ Network.prototype.start = function(opts, openCallback) {
|
|||
};
|
||||
|
||||
Network.prototype.createSocket = function() {
|
||||
log.debug('Async: Connecting to socket:', this.url, this.socketOptions);
|
||||
log.debug('Async: Connecting to socket:', this.url);
|
||||
return io.connect(this.url, this.socketOptions);
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue