mirror of
https://github.com/webtorrent/bittorrent-tracker.git
synced 2025-01-19 04:31:36 +00:00
include additional debug information
This commit is contained in:
parent
04d50cf021
commit
538bb3e20a
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user