summaryrefslogtreecommitdiffhomepage
path: root/src/core/ngx_syslog.h
diff options
context:
space:
mode:
authorMaxim Dounin <mdounin@mdounin.ru>2023-03-10 07:43:50 +0300
committerMaxim Dounin <mdounin@mdounin.ru>2023-03-10 07:43:50 +0300
commit11ed95bb53210c322c16bb0897f0cb3b5726ed57 (patch)
treee7ce66fefbd1fc0965cdce27e882881557c386d9 /src/core/ngx_syslog.h
parent853912986d9568b049ecb5499b6af987cb13cb14 (diff)
downloadnginx-11ed95bb53210c322c16bb0897f0cb3b5726ed57.tar.gz
nginx-11ed95bb53210c322c16bb0897f0cb3b5726ed57.tar.bz2
Syslog: introduced error log handler.
This ensures that errors which happen during logging to syslog are logged with proper context, such as "while logging to syslog" and the server name. Prodded by Safar Safarly.
Diffstat (limited to 'src/core/ngx_syslog.h')
-rw-r--r--src/core/ngx_syslog.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/ngx_syslog.h b/src/core/ngx_syslog.h
index 181ebe7b3..e2d54acdb 100644
--- a/src/core/ngx_syslog.h
+++ b/src/core/ngx_syslog.h
@@ -18,7 +18,8 @@ typedef struct {
ngx_addr_t server;
ngx_connection_t conn;
- ngx_log_t *log;
+ ngx_log_t log;
+ ngx_log_t *logp;
unsigned busy:1;
unsigned nohostname:1;