From 876a01ff8414067381fb902fe27afba5eec7b288 Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Sat, 9 May 2009 03:02:11 +0000 Subject: [PATCH] Fix some debug output when not using utf8 --- deluge/core/torrentmanager.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deluge/core/torrentmanager.py b/deluge/core/torrentmanager.py index d0983b3d6..6ad990ead 100644 --- a/deluge/core/torrentmanager.py +++ b/deluge/core/torrentmanager.py @@ -687,7 +687,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")) try: torrent = self.torrents[str(alert.handle.info_hash())] except: @@ -787,7 +787,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: