Skip to content
Snippets Groups Projects
Commit 49d95a8e authored by Sebastien ANDRE's avatar Sebastien ANDRE
Browse files

hotline : #182614 : add more log in send newsletter

parent 56272589
Branches
Tags
1 merge request!4788hotline : #182614 : add more log in send newsletter
Pipeline #24536 passed with stage
in 30 minutes and 59 seconds
- correctif #182614 : Administration : Newsletter, erreur lors de l'affichage de l'envoi d'une notification
\ No newline at end of file
......@@ -65,14 +65,14 @@ class Class_Batch_SendNewsletters extends Class_Batch_Abstract {
if ((!$output = $command->getOutput())
|| !is_array($output)
|| !$output[0]) {
$this->_endWithError('Unable to run ' . $shell);
$this->_endWithError('Unable to run command ' . $shell);
return;
}
$command->exec('ps '. $output[0]);
$command->exec('ps '. $output[0] . ' > /dev/null & echo $!');
if (!$success = 0 === $command->getReturnVar())
$this->_endWithError('Unable to run ' . $shell);
$this->_endWithError('Result command : ' . $shell . ', with output: ' . $output[0] . ', with return var: ' . $command->getReturnVar());
}
......
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