Skip to content

Commit

Permalink
[TASK] Improve error handling in logging
Browse files Browse the repository at this point in the history
  • Loading branch information
aertmann committed Jul 3, 2015
1 parent 05e5adf commit 8cd1bd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Aspects/ResourcePublisherAspect.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ public function optimizeFile($pathAndFilename) {
$cmd = escapeshellcmd($binaryPath) . ' ' . $arguments;
$output = [];
exec($cmd, $output, $result);
$this->systemLogger->log($cmd . ' (' . $result . ')', LOG_INFO, $output);
$this->systemLogger->log($cmd . ' (' . ((int)$result === 0 ? 'OK' : 'Error: ' . $result) . ')', LOG_INFO, $output);
}

}

0 comments on commit 8cd1bd7

Please sign in to comment.