summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Resch <andrewresch@gmail.com>2009-05-09 03:02:11 +0000
committerAndrew Resch <andrewresch@gmail.com>2009-05-09 03:02:11 +0000
commitf9942720284755089c9f35b6ff818dff4d9cb23c (patch)
treeed1d4465c618541fad4a7ec3aaed6aaee99db007
parent96bcfd5ba14f2da98f54e3f46e82d5f84c471cbf (diff)
downloaddeluge-f9942720284755089c9f35b6ff818dff4d9cb23c.tar.gz
deluge-f9942720284755089c9f35b6ff818dff4d9cb23c.tar.bz2
deluge-f9942720284755089c9f35b6ff818dff4d9cb23c.zip
Fix some debug output when not using utf8
-rw-r--r--deluge/core/torrentmanager.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/deluge/core/torrentmanager.py b/deluge/core/torrentmanager.py
index cc2e3e280..30908955b 100644
--- a/deluge/core/torrentmanager.py
+++ b/deluge/core/torrentmanager.py
@@ -685,7 +685,7 @@ class TorrentManager(component.Component):
torrent.update_state()
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"))
# Get the torrent_id
try:
torrent = self.torrents[str(alert.handle.info_hash())]
@@ -790,7 +790,7 @@ class TorrentManager(component.Component):
def on_alert_file_renamed(self, alert):
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:
torrent = self.torrents[str(alert.handle.info_hash())]
except: