Skip to content

Commit

Permalink
Merge pull request #507 from loris-imageserver/transforms
Browse files Browse the repository at this point in the history
transforms: capture stdout output as well as stderr
  • Loading branch information
bcail authored Jul 27, 2020
2 parents 01df4d4 + d52435a commit 3c641eb
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 3c641eb

Please sign in to comment.