diff options
author | Damien Churchill <damien.churchill@ukplc.net> | 2010-06-04 18:05:21 +0100 |
---|---|---|
committer | Damien Churchill <damien.churchill@ukplc.net> | 2010-06-04 18:05:27 +0100 |
commit | 19c27ee8c5448ad8bfa9db7d3ed5e109254e7711 (patch) | |
tree | bc7a14c9fa8a4e45fcf0380489651f66d05579af | |
parent | d69b8e1099ad314eb6155c0aa14355882da7b507 (diff) | |
download | deluge-19c27ee8c5448ad8bfa9db7d3ed5e109254e7711.tar.gz deluge-19c27ee8c5448ad8bfa9db7d3ed5e109254e7711.tar.bz2 deluge-19c27ee8c5448ad8bfa9db7d3ed5e109254e7711.zip |
Add some debug logging statements
-rw-r--r-- | 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 2fa825f69..57fd13f46 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) |