Merge pull request #14722 from ibennetch/authlog

Fix missed logging with AuthLogSuccess when logging to syslog
This commit is contained in:
Isaac Bennetch 2018-11-12 22:40:53 -05:00 committed by GitHub
commit e50ce09c2a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -80,7 +80,7 @@ class Logging
}
$message = self::getLogMessage($user, $status);
if ($log_file == 'syslog') {
if (function_exists('syslog') && $status != 'ok') {
if (function_exists('syslog')) {
@openlog('phpMyAdmin', LOG_NDELAY | LOG_PID, LOG_AUTHPRIV);
@syslog(LOG_WARNING, $message);
closelog();