mirror of
https://github.com/php/php-src.git
synced 2025-08-19 08:49:28 +02:00
Use php_openlog instead of openlog in FPM
Fix incorrect port in the previous commit
This commit is contained in:
parent
f9d9c5ebd9
commit
86d472e249
1 changed files with 1 additions and 1 deletions
|
@ -297,7 +297,7 @@ int fpm_stdio_open_error_log(int reopen) /* {{{ */
|
|||
|
||||
#ifdef HAVE_SYSLOG_H
|
||||
if (!strcasecmp(fpm_global_config.error_log, "syslog")) {
|
||||
openlog(fpm_global_config.syslog_ident, LOG_PID | LOG_CONS, fpm_global_config.syslog_facility);
|
||||
php_openlog(fpm_global_config.syslog_ident, LOG_PID | LOG_CONS, fpm_global_config.syslog_facility);
|
||||
fpm_globals.error_log_fd = ZLOG_SYSLOG;
|
||||
if (fpm_use_error_log()) {
|
||||
zlog_set_fd(fpm_globals.error_log_fd);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue