mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-02 22:48:40 +00:00
[#2733] [Core] Fix on_alert_performance - UnicodeDecodeError
This commit is contained in:
parent
2c7bbc6ade
commit
9726481fb4
1 changed files with 3 additions and 3 deletions
|
@ -1190,7 +1190,7 @@ class TorrentManager(component.Component):
|
||||||
of all torrents that changed since last time this was posted.
|
of all torrents that changed since last time this was posted.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
log.debug("on_status_notification: %s", alert.message())
|
log.debug("on_status_notification: %s", decode_string(alert.message()))
|
||||||
self.last_state_update_alert_ts = time.time()
|
self.last_state_update_alert_ts = time.time()
|
||||||
|
|
||||||
for t_status in alert.status:
|
for t_status in alert.status:
|
||||||
|
@ -1205,11 +1205,11 @@ class TorrentManager(component.Component):
|
||||||
|
|
||||||
def on_alert_external_ip(self, alert):
|
def on_alert_external_ip(self, alert):
|
||||||
"""Alert handler for libtorrent external_ip_alert"""
|
"""Alert handler for libtorrent external_ip_alert"""
|
||||||
log.info("on_alert_external_ip: %s", alert.message())
|
log.info("on_alert_external_ip: %s", decode_string(alert.message()))
|
||||||
|
|
||||||
def on_alert_performance(self, alert):
|
def on_alert_performance(self, alert):
|
||||||
"""Alert handler for libtorrent performance_alert"""
|
"""Alert handler for libtorrent performance_alert"""
|
||||||
log.warning("on_alert_performance: %s, %s", alert.message(), alert.warning_code)
|
log.warning("on_alert_performance: %s, %s", decode_string(alert.message()), alert.warning_code)
|
||||||
if alert.warning_code == lt.performance_warning_t.send_buffer_watermark_too_low:
|
if alert.warning_code == lt.performance_warning_t.send_buffer_watermark_too_low:
|
||||||
max_send_buffer_watermark = 3 * 1024 * 1024 # 3MiB
|
max_send_buffer_watermark = 3 * 1024 * 1024 # 3MiB
|
||||||
settings = self.session.get_settings()
|
settings = self.session.get_settings()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue