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) {