Using passthru() in Solr task exec for better debugging

This commit is contained in:
Ingo Schommer 2012-08-22 19:36:03 +02:00
parent 9a446f54ae
commit a50d9cf553
1 changed files with 1 additions and 1 deletions

View File

@ -208,7 +208,7 @@ class Solr_Reindex extends BuildTask {
echo "$offset..";
$cmd = "php $script dev/tasks/$self index=$index class=$class start=$offset variantstate=$statevar";
$res = `$cmd`;
$res = passthru($cmd);
if (isset($_GET['verbose'])) {
echo "\n Running '$cmd'\n";
echo " ".preg_replace('/\r\n|\n/', '$0 ', $res)."\n";