Skip to content

Commit

Permalink
transforms: capture stdout output as well as stderr
Browse files Browse the repository at this point in the history
  • Loading branch information
bcail committed Jul 24, 2020
1 parent 01df4d4 commit d52435a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion loris/transforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit d52435a

Please sign in to comment.