More verbose Alert Detail Fallback (#11153)

* more verbose fallback output detail

* update if statemen

* Switched

Sorry, I typed them backwards :D

Co-authored-by: Tony Murray <murraytony@gmail.com>
This commit is contained in:
SourceDoctor
2020-02-19 17:34:37 +01:00
committed by GitHub
parent c273ab28af
commit 441262e739

View File

@@ -1008,7 +1008,7 @@ function alert_details($details)
if (in_array($k, ['device_id', 'sysObjectID', 'sysDescr', 'location_id'])) {
continue;
}
if (!empty($v) && (stristr($k, 'id') || stristr($k, 'desc') || stristr($k, 'msg')) && substr_count($k, '_') <= 1) {
if (!empty($v) && str_i_contains($k, ['id', 'desc', 'msg', 'last'])) {
$fault_detail_data[] = "$k => '$v'";
}
}