Module: deluge Branch: master Commit: c06f9057020a882526e330401303430dea0a14a3
Author: Damien Churchill <[email protected]> Date: Fri Jun 4 18:05:21 2010 +0100 Add some debug logging statements --- deluge/plugins/execute/execute/core.py | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/deluge/plugins/execute/execute/core.py b/deluge/plugins/execute/execute/core.py index 2fa825f..57fd13f 100644 --- a/deluge/plugins/execute/execute/core.py +++ b/deluge/plugins/execute/execute/core.py @@ -102,11 +102,14 @@ class Core(CorePluginBase): else: save_path = info["save_path"] + log.debug("[execute] Running commands for %s", EXECUTE_EVENT) + # Go through and execute all the commands for command in self.config["commands"]: if command[EXECUTE_EVENT] == event: command = os.path.expandvars(command[EXECUTE_COMMAND]) command = os.path.expanduser(command) + log.debug("[execute] running %s", command) p = Popen([command, torrent_id, torrent_name, save_path], stdin=PIPE, stdout=PIPE, stderr=PIPE) if p.wait() != 0: log.warn("Execute command failed with exit code %d", p.returncode) -- 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.
