summaryrefslogtreecommitdiffstats
path: root/module/plugins/hooks
diff options
context:
space:
mode:
authorGravatar =?UTF-8?q?Michael=20Elsd=C3=B6rfer?= <michael@elsdoerfer.com> 2013-11-21 18:26:44 +0100
committerGravatar Stefano <l.stickell@yahoo.it> 2013-11-21 18:26:44 +0100
commit6df98309258e180587a71bd13940ca0ff7c56029 (patch)
tree326b0b0fa668745d6c3c1901720742adf039b256 /module/plugins/hooks
parentMerge pull request #415 from vuolter/s/hoster/NowDownloadEu (diff)
downloadpyload-6df98309258e180587a71bd13940ca0ff7c56029.tar.xz
Merged #407
Make debugging script issue a bit easier
Diffstat (limited to 'module/plugins/hooks')
-rw-r--r--module/plugins/hooks/ExternalScripts.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/module/plugins/hooks/ExternalScripts.py b/module/plugins/hooks/ExternalScripts.py
index de8afda5f..b1a9420bb 100644
--- a/module/plugins/hooks/ExternalScripts.py
+++ b/module/plugins/hooks/ExternalScripts.py
@@ -73,6 +73,7 @@ class ExternalScripts(Hook):
def callScript(self, script, *args):
try:
cmd = [script] + [str(x) if not isinstance(x, basestring) else x for x in args]
+ self.logDebug("Executing %(script)s: %(cmd)s" % {"script": os.path.abspath(script), "cmd": " ".join(cmd)})
#output goes to pyload
subprocess.Popen(cmd, bufsize=-1)
except Exception, e: