mirror of https://github.com/MISP/MISP
chg: [syslog] include change field if no custom log message was generated
- for certain log entries vital information was omitted by the syslog. If no custom message is specifically set for the log entry, the change field is includedpull/8568/head
parent
b1d5b8baff
commit
6a7521293c
|
@ -402,6 +402,8 @@ class Log extends AppModel
|
|||
}
|
||||
if (!empty($data['Log']['description'])) {
|
||||
$entry .= " -- {$data['Log']['description']}";
|
||||
} else if (!empty($data['Log']['change'])) {
|
||||
$entry .= " -- " . json_encode($data['Log']['change']);
|
||||
}
|
||||
$this->syslog->write($action, $entry);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue