mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-26 11:21:08 +00:00
Fix some debug output when not using utf8
This commit is contained in:
parent
f7bb2f330b
commit
876a01ff84
@ -687,7 +687,7 @@ class TorrentManager(component.Component):
|
|||||||
torrent.update_state()
|
torrent.update_state()
|
||||||
|
|
||||||
def on_alert_tracker_reply(self, alert):
|
def on_alert_tracker_reply(self, alert):
|
||||||
log.debug("on_alert_tracker_reply: %s", alert.message())
|
log.debug("on_alert_tracker_reply: %s", alert.message().decode("utf8"))
|
||||||
try:
|
try:
|
||||||
torrent = self.torrents[str(alert.handle.info_hash())]
|
torrent = self.torrents[str(alert.handle.info_hash())]
|
||||||
except:
|
except:
|
||||||
@ -787,7 +787,7 @@ class TorrentManager(component.Component):
|
|||||||
|
|
||||||
def on_alert_file_renamed(self, alert):
|
def on_alert_file_renamed(self, alert):
|
||||||
log.debug("on_alert_file_renamed")
|
log.debug("on_alert_file_renamed")
|
||||||
log.debug("index: %s name: %s", alert.index, alert.name)
|
log.debug("index: %s name: %s", alert.index, alert.name.decode("utf8"))
|
||||||
try:
|
try:
|
||||||
torrent = self.torrents[str(alert.handle.info_hash())]
|
torrent = self.torrents[str(alert.handle.info_hash())]
|
||||||
except:
|
except:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user