bug fix: remote extra logging from application installer

This commit is contained in:
Usman Nasir
2020-11-10 14:18:07 +05:00
parent cb741771e1
commit 42bdd0378e
3 changed files with 16 additions and 8 deletions

View File

@@ -106,10 +106,13 @@ class ProcessUtilities(multi.Thread):
try:
if os.path.exists(ProcessUtilities.debugPath):
logging.writeToFile(command)
f = open(os.devnull, 'w')
if shell == False:
res = subprocess.call(shlex.split(command))
res = subprocess.call(shlex.split(command), stdout=f, stderr=f)
else:
res = subprocess.call(command, shell=shell)
res = subprocess.call(command, shell=shell, stdout=f, stderr=f)
if res == 0:
return 1