-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Include Details/Log-File in Crash-Report #7
Comments
@tfamula Just to get a first impression: Would this be do-able at all with current ILIAS? Or would it require changes to ILIAS to get the log file? Thank you! :-) |
NotifyOnCronFailure der Hochschule Luzern löst das gut- Ergebnis ist eine wesentliche informativere Mail, vgl. Gegenüberstellung für denselben beispielhaften Cronfehler (Link: CronStatusMonitor, Rechts: NotifyOnCronFailure) Allerdings ist derzeit die weitere Maintenance von NotifyOnCronFailure nicht geklärt, so dass es ggf. Sinn macht, das Beste aus beiden Ansätzen in einem Plugin zusammenzuführen. NotifyOnCronFailure holt sich die $data = ilCronManager::getCronJobData();
$data_plugins = ilCronManager::getPluginJobs();
foreach ($data_plugins as $data_plugin) {
$data[] = $data_plugin[1];
}
$failed_jobs = [];
foreach ($data as $job) {
if ($job["job_result_status"] == ilCronJobResult::STATUS_CRASHED || $job["job_result_status"] == ilCronJobResult::STATUS_FAIL) {
$failed_jobs[] = array("job_id" => $job["job_id"], "job_result_message" => $job["job_result_message"]);
}
} Der Mailtext wird dann so zusammengebaut: $text = '';
foreach ($failures as $failure) {
$text .= $failure['job_id'] . ' (' . $this->cp->txt('cron_status') . ': ' . $failure['job_result_message'] . ")\n";
} |
Current Situation
Notifications about crashed Cronjobs are quite simple
Feature Request
It would be nice to include as much details as possible (gated behind a new setting)
The text was updated successfully, but these errors were encountered: