Author: andar
Revision: 5246
Log:
Fix some debug output when not using utf8
Diff:
Modified: branches/1.1.0_RC/deluge/core/torrentmanager.py
===================================================================
--- branches/1.1.0_RC/deluge/core/torrentmanager.py 2009-05-09 02:59:42 UTC
(rev 5245)
+++ branches/1.1.0_RC/deluge/core/torrentmanager.py 2009-05-09 03:02:11 UTC
(rev 5246)
@@ -685,7 +685,7 @@
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 @@
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:
Modified: trunk/deluge/core/torrentmanager.py
===================================================================
--- trunk/deluge/core/torrentmanager.py 2009-05-09 02:59:42 UTC (rev 5245)
+++ trunk/deluge/core/torrentmanager.py 2009-05-09 03:02:11 UTC (rev 5246)
@@ -687,7 +687,7 @@
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 @@
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:
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"deluge-commit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/deluge-commit?hl=en
-~----------~----~----~----~------~----~------~--~---