Add additional eventlog severity levels (#5879)

This commit is contained in:
Richard Mayhew
2017-02-14 00:32:02 +02:00
committed by Neil Lathwood
parent a44d4254f8
commit e4f48e661e
17 changed files with 57 additions and 57 deletions

View File

@@ -30,10 +30,10 @@ if (!empty($ifName) && is_numeric($port_id)) {
$device = device_by_id_cache($device_id);
if ($descr === 'repoll') {
del_dev_attrib($device, 'ifName:'.$ifName);
log_event("$ifName Port ifAlias cleared manually", $device, 'interface', $port_id);
log_event("$ifName Port ifAlias cleared manually", $device, 'interface', 3, $port_id);
} else {
set_dev_attrib($device, 'ifName:'.$ifName, 1);
log_event("$ifName Port ifAlias set manually: $descr", $device, 'interface', $port_id);
log_event("$ifName Port ifAlias set manually: $descr", $device, 'interface', 3, $port_id);
}
$status = 'ok';
} else {