Correct log message.

This commit is contained in:
Pedro Algarvio 2011-05-06 19:08:23 +01:00
parent 06f025f4bd
commit a06b350858
1 changed files with 3 additions and 3 deletions

View File

@ -500,10 +500,10 @@ class TorrentManager(component.Component):
component.get("EventManager").emit( component.get("EventManager").emit(
TorrentAddedEvent(torrent.torrent_id, from_state) TorrentAddedEvent(torrent.torrent_id, from_state)
) )
log.info("Torrent %s %s by user: %s", log.info("Torrent %s from user \"%s\" %s",
torrent.get_status(["name"])["name"], torrent.get_status(["name"])["name"],
(from_state and "added" or "loaded"), torrent.get_status(["owner"])["owner"],
component.get("RPCServer").get_session_user()) (from_state and "added" or "loaded"))
return torrent.torrent_id return torrent.torrent_id
def load_torrent(self, torrent_id): def load_torrent(self, torrent_id):