-
-
Notifications
You must be signed in to change notification settings - Fork 625
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
ClientConfig Logger should be used for utp #676
Comments
I'm looking to write a PR to implement the ClientConfig passthrough, but not sure exactly where to start. Would changing |
I think it shoudl be passed through in construction of the utp.Socket. Probably an option in NewSocket, or a method to set it immediately. It will need to be extracted from the owning Socket for any logging that occurs in utp. I.e. the global utp Logger should be given to a new socket that doesn't override the default, and should not be referenced anywhere else. |
Once anacrolix/go-libutp releases a new version (see: anacrolix/go-libutp#19), I'll start work on a PR here. |
I pushed v1.2.0 for this purpose. Thanks @FIGBERT . |
anacrolix/go-libutp, a dependency of anacrolix/torrent, did not respect the logger we configured for our torrent client and would log over the Bubble Tea UI and caused errors in rendering for the rest of the session until that section of the screen was refreshed. We fixed these issues upstream, and this commit incorporates these changes into Mabel. Links: anacrolix/torrent#676 anacrolix/go-libutp#19 anacrolix/torrent#722
Per #332 (comment), the ClientConfig Logger should be passed through to go-libutp (and possibly anacrolix/utp when that's in use?). Currently it's necessary to modify the global Logger instance manually, and that belongs to the package, not to any utp instances owned by a torrent Client.
The text was updated successfully, but these errors were encountered: