mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-08 09:28:41 +00:00
Add some debug logging statements
This commit is contained in:
parent
f6f9e0234a
commit
c06f905702
1 changed files with 3 additions and 0 deletions
|
@ -102,11 +102,14 @@ class Core(CorePluginBase):
|
||||||
else:
|
else:
|
||||||
save_path = info["save_path"]
|
save_path = info["save_path"]
|
||||||
|
|
||||||
|
log.debug("[execute] Running commands for %s", EXECUTE_EVENT)
|
||||||
|
|
||||||
# Go through and execute all the commands
|
# Go through and execute all the commands
|
||||||
for command in self.config["commands"]:
|
for command in self.config["commands"]:
|
||||||
if command[EXECUTE_EVENT] == event:
|
if command[EXECUTE_EVENT] == event:
|
||||||
command = os.path.expandvars(command[EXECUTE_COMMAND])
|
command = os.path.expandvars(command[EXECUTE_COMMAND])
|
||||||
command = os.path.expanduser(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)
|
p = Popen([command, torrent_id, torrent_name, save_path], stdin=PIPE, stdout=PIPE, stderr=PIPE)
|
||||||
if p.wait() != 0:
|
if p.wait() != 0:
|
||||||
log.warn("Execute command failed with exit code %d", p.returncode)
|
log.warn("Execute command failed with exit code %d", p.returncode)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue