Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/webtorrent/webtorrent.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorFeross Aboukhadijeh <feross@feross.org>2016-01-06 05:32:52 +0300
committerFeross Aboukhadijeh <feross@feross.org>2016-01-06 05:32:52 +0300
commit2158269f1113dd43fef35ce40ccb202a9eca3e8a (patch)
tree6ad42e75fdd88b28eb0f1fdd23fb20f7bfcf66fc /lib
parent0395452304735b2845dbedbcb6fbafa0a52e43c3 (diff)
log ut_metadata warnings
Diffstat (limited to 'lib')
-rw-r--r--lib/torrent.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/torrent.js b/lib/torrent.js
index 0509ceb..0cf8b3a 100644
--- a/lib/torrent.js
+++ b/lib/torrent.js
@@ -598,6 +598,10 @@ Torrent.prototype._onWire = function (wire, addr) {
// use ut_metadata extension
wire.use(ut_metadata(self.metadata))
+ wire.ut_metadata.on('warning', function (err) {
+ debug('ut_metadata warning: %s', err.message)
+ })
+
if (!self.metadata) {
wire.ut_metadata.on('metadata', function (metadata) {
debug('got metadata via ut_metadata')