Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Any way to log what's happening after webtorrent.add(id) ?? #1057

Closed
jackey opened this issue Feb 23, 2017 · 4 comments
Closed

Any way to log what's happening after webtorrent.add(id) ?? #1057

jackey opened this issue Feb 23, 2017 · 4 comments

Comments

@jackey
Copy link

@jackey jackey commented Feb 23, 2017

i'm beginner to use webtorrent. not lucky to use it. :(

    var client = new WebTorrent();
    var id = "magnet:?xt=urn:btih:81b15febb76e289928ff9ba93b1062ce7bf068d7&dn=Marvels.Agents.of.S.H.I.E.L.D.S04E06.1080p.WEB-DL.DD5.1.H264-RARBG&tr=http%3A%2F%2Ftracker.trackerfix.com%3A80%2Fannounce&tr=udp%3A%2F%2F9.rarbg.me%3A2710&tr=udp%3A%2F%2F9.rarbg.to%3A2710";
    client.on('error', function (err) {
      console.log(['err', err]);
    });
    client.on('torrent', function (torrent) {
      console.log(['torrent', torrent]);
    });
    client.add(id, function(torrent) {
      console.log(torrent);
    });

i got nothing from these code. how to check the log during webtorrent runing ?

@bertofer

This comment has been minimized.

Copy link

@bertofer bertofer commented Feb 23, 2017

WebTorrent uses the debug module for logs. If you put localStorage.debug = '*' you will see all the logs happening. 'webtorrent:*' will filter the webtorrent specific ones.

Although webtorrent uses other internal modules (like bittorrent-protocol, ...), consider just '*' if you want to go deeper in your debug.

@jackey

This comment has been minimized.

Copy link
Author

@jackey jackey commented Feb 24, 2017

@bertofer i see the logs output from console. thank u .

@jackey jackey closed this Feb 24, 2017
@feross

This comment has been minimized.

Copy link
Member

@feross feross commented Mar 8, 2017

Thanks for helping out @bertofer :)

@lock

This comment has been minimized.

Copy link

@lock lock bot commented May 3, 2018

This thread has been automatically locked because it has not had recent activity. To discuss futher, please open a new issue.

@lock lock bot locked as resolved and limited conversation to collaborators May 3, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.