chg: [log] Do not log request type logs to syslog

pull/6581/head
Jakub Onderka 2020-12-10 20:10:19 +01:00
parent 324cdbafce
commit 9c39273100
1 changed files with 5 additions and 0 deletions

View File

@ -336,6 +336,11 @@ class Log extends AppModel
$elasticSearchClient->pushDocument($logIndex, "log", $data);
}
// Do not save request action logs to syslog, because they contain no information
if ($data['Log']['action'] === 'request') {
return true;
}
// write to syslogd as well if enabled
if ($this->syslog === null) {
if (Configure::read('Security.syslog')) {