Properly ignore stderr and redirect stdout when execute a command

fix #2933
This commit is contained in:
Florent Le Coz 2015-01-19 17:48:50 +01:00
parent 0975b343f0
commit c580840d77

View file

@ -65,7 +65,7 @@ class Executor(threading.Thread):
log.error('Could not open redirection file: %s', self.filename, exc_info=True)
return
try:
subprocess.call(self.command)
subprocess.call(self.command, stdout=stdout, stderr=DEVNULL)
except:
if self.remote:
import traceback