From 170aa9baa8580763361348545b49d435ec0b172b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Tue, 18 Aug 2015 15:48:11 +0200 Subject: Write stderr to log file together with stdout Utils function callsubprocess now logs all program output including stderr. Convenient would be to print stderr even if output is disabled. But this would probably required threads. --- scripts/utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'scripts/utils.py') diff --git a/scripts/utils.py b/scripts/utils.py index 7a7a79d..742aec5 100644 --- a/scripts/utils.py +++ b/scripts/utils.py @@ -31,7 +31,8 @@ def build_symbol_map(): def callsubprocess(process_name, process, show_output = True, return_output = False, env=os.environ, allowed_exit_codes = [0], allow_all_exit_codes = False): - sprc = subprocess.Popen(process, stdout = subprocess.PIPE, env = env) + sprc = subprocess.Popen(process, stdout = subprocess.PIPE, + stderr = subprocess.STDOUT, env = env) try: os.mkdir(os.path.join(sf(conf.log_folder), process_name)) -- cgit v1.2.3