Skip to content
Snippets Groups Projects
Commit 283176f7 authored by Tibo's avatar Tibo
Browse files

try to catch all sensor exceptions

parent c7053a24
No related branches found
No related tags found
No related merge requests found
Pipeline #12929 passed
......@@ -149,7 +149,7 @@ class Server extends Model
try {
$report = (new $sensor)->analyze($records, $serverinfo);
$this->reports[] = $report;
} catch (\Exception $ex) {
} catch (\Throwable $ex) {
Log::error('Sensor failed : ' . $ex->getTraceAsString());
$report = new Report($sensor, Status::unknown());
$report->setHTML("<p>Agent crashed...</p>");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment