peer_notification -> libtorrent alert mask?

Suggestions and discussion of future versions
Post Reply
nottheoilrig

peer_notification -> libtorrent alert mask?

Post by nottheoilrig »

Would you consider adding peer_notification to the libtorrent alert mask?

Code: Select all

--- a/deluge/core/alertmanager.py
+++ b/deluge/core/alertmanager.py
@@ -40,6 +40,7 @@ def __init__(self):
 
         self.session.set_alert_mask(
             lt.alert.category_t.error_notification |
+            lt.alert.category_t.peer_notification |
             lt.alert.category_t.port_mapping_notification |
             lt.alert.category_t.storage_notification |
             lt.alert.category_t.tracker_notification |
I just spent a while tracking down a problem with libtorrent, without seeing any relevant messages.
I did launch Deluge with -L debug.
Turns out with peer_notification enabled, I would have gotten the message I needed immediately, specifically:

Code: Select all

[DEBUG   ] 14:36:26 alertmanager:124 peer_error_alert:  peer (216.58.216.81:80, Unknown) peer error [bittorrent] [libtorrent]: invalid redirection
Post Reply