From 8640176a078a7142c16d4dd4028611d788c67800 Mon Sep 17 00:00:00 2001 From: Stefan Thomas Date: Fri, 9 Aug 2013 17:09:30 -0700 Subject: [PATCH] Move debug statement in pathfind.js to proper place. --- src/js/ripple/pathfind.js | 1 - src/js/ripple/server.js | 4 ++++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/js/ripple/pathfind.js b/src/js/ripple/pathfind.js index 6dd1835c..3c456140 100644 --- a/src/js/ripple/pathfind.js +++ b/src/js/ripple/pathfind.js @@ -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)) { diff --git a/src/js/ripple/server.js b/src/js/ripple/server.js index a9275f5d..55eea013 100644 --- a/src/js/ripple/server.js +++ b/src/js/ripple/server.js @@ -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');