From 538bb3e20a0d1861d5adfcfdbf3f98abd2c5ff3a Mon Sep 17 00:00:00 2001 From: Feross Aboukhadijeh Date: Wed, 17 Dec 2014 21:17:58 -0800 Subject: [PATCH] include additional debug information --- client.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/client.js b/client.js index af543af..27703ee 100644 --- a/client.js +++ b/client.js @@ -454,14 +454,18 @@ Tracker.prototype._handleResponse = function (requestUrl, data) { } var failure = data['failure reason'] if (failure) { + debug('failure from ' + requestUrl + ' (' + failure + ')') return self.client.emit('warning', new Error(failure)) } var warning = data['warning message'] if (warning) { + debug('warning from ' + requestUrl + ' (' + warning + ')') self.client.emit('warning', new Error(warning)) } + debug('response from ' + requestUrl) + if (requestUrl === self._announceUrl) { var interval = data.interval || data['min interval'] if (interval && !self._opts.interval && self._intervalMs !== 0) {