Skip to content

Commit 8cd1bd7

Browse files
committed
[TASK] Improve error handling in logging
1 parent 05e5adf commit 8cd1bd7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Classes/Aspects/ResourcePublisherAspect.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ public function optimizeFile($pathAndFilename) {
127127
$cmd = escapeshellcmd($binaryPath) . ' ' . $arguments;
128128
$output = [];
129129
exec($cmd, $output, $result);
130-
$this->systemLogger->log($cmd . ' (' . $result . ')', LOG_INFO, $output);
130+
$this->systemLogger->log($cmd . ' (' . ((int)$result === 0 ? 'OK' : 'Error: ' . $result) . ')', LOG_INFO, $output);
131131
}
132132

133133
}

0 commit comments

Comments
 (0)