Mercurial > hg > nginx-quic
comparison src/core/ngx_syslog.h @ 9057:8771d35d55d0
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.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Fri, 10 Mar 2023 07:43:50 +0300 |
parents | 29adacffdefa |
children |
comparison
equal
deleted
inserted
replaced
9056:29adacffdefa | 9057:8771d35d55d0 |
---|---|
16 ngx_str_t *hostname; | 16 ngx_str_t *hostname; |
17 | 17 |
18 ngx_addr_t server; | 18 ngx_addr_t server; |
19 ngx_connection_t conn; | 19 ngx_connection_t conn; |
20 | 20 |
21 ngx_log_t *log; | 21 ngx_log_t log; |
22 ngx_log_t *logp; | |
22 | 23 |
23 unsigned busy:1; | 24 unsigned busy:1; |
24 unsigned nohostname:1; | 25 unsigned nohostname:1; |
25 } ngx_syslog_peer_t; | 26 } ngx_syslog_peer_t; |
26 | 27 |