From d52435af13fa1396bedfb74f9e5230aeb02e212a Mon Sep 17 00:00:00 2001 From: Ben Cail Date: Fri, 24 Jul 2020 13:56:13 -0400 Subject: [PATCH] transforms: capture stdout output as well as stderr --- loris/transforms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/loris/transforms.py b/loris/transforms.py index 700382e9..a4d14def 100644 --- a/loris/transforms.py +++ b/loris/transforms.py @@ -272,7 +272,7 @@ def _create_fifo(self, tmp): def _run_transform(self, target_fp, image_request, image_info, transform_cmd, fifo_fp): try: expand_proc = subprocess.Popen(transform_cmd, shell=True, bufsize=-1, - stderr=subprocess.PIPE, env=self.env) + stdout=subprocess.PIPE, stderr=subprocess.PIPE, env=self.env) with open(fifo_fp, 'rb') as f: # read from the named pipe p = Parser()