Move debug statement in pathfind.js to proper place.

This commit is contained in:
Stefan Thomas
2013-08-09 17:09:30 -07:00
parent e49838437e
commit 8640176a07
2 changed files with 4 additions and 1 deletions

View File

@@ -72,7 +72,6 @@ PathFind.prototype.notify_update = function (message)
// Only pass the event along if this path find response matches what we were
// looking for.
if (message.alternatives && message.alternatives.length) console.log(Amount.from_json(message.alternatives[0].source_amount).to_text_full());
if (this.src_account === src_account &&
this.dst_account === dst_account &&
this.dst_amount.equals(dst_amount)) {

View File

@@ -262,6 +262,10 @@ Server.prototype._handle_message = function (json) {
}
break;
case 'path_find':
if (self._remote.trace) utils.logObject('server: path_find: %s', message);
break;
case 'serverStatus':
// This message is only received when online. As we are connected, it is the definative final state.
self._set_state(self._is_online(message.server_status) ? 'online' : 'offline');