Commit 8781e0c2 authored by Carsten  Rose's avatar Carsten Rose
Browse files

Refs #10751. Add '2>&1' to merge stderr in stdout to see problems in qfq.log

parent fca91436
Pipeline #3533 passed with stages
in 3 minutes and 52 seconds
......@@ -200,7 +200,7 @@ class Download {
}
// img2pdf --pagesize A4 -o out.pdf *.jpg
$cmd = $this->img2Pdf . ' --pagesize A4 -o ' . $filePdf . ' ' . escapeshellarg($fileImage);
$cmd = $this->img2Pdf . ' --pagesize A4 -o ' . $filePdf . ' ' . escapeshellarg($fileImage) . ' 2>&1';
if ($this->downloadDebugLog != '') {
Logger::logMessage("Download: $cmd", $this->downloadDebugLog);
......@@ -266,7 +266,7 @@ class Download {
if ($rcQpdf != 0) {
// Try 2: via 'gs -sDEVICE=pdfwrite'
$cmdGs = $this->gs . " -sDEVICE=pdfwrite -dNOPAUSE -sOutputFile=\"$file\" -- \"$backup\"";
$cmdGs = $this->gs . " -sDEVICE=pdfwrite -dNOPAUSE -sOutputFile=\"$file\" -- \"$backup\" 2>&1";
exec($cmdGs, $outputGs, $rcGs);
if ($rcGs != 0) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment