mirror of
https://github.com/nginx/nginx.git
synced 2026-11-20 07:02:58 +00:00
Control API: warn in single process mode only if API is enabled
Previously, the "control API unavailable in single process mode" warning was logged on every start in single process mode, even without the "-l" option.
This commit is contained in:
parent
a4b482207d
commit
f7504639fa
1 changed files with 1 additions and 1 deletions
|
|
@ -368,7 +368,7 @@ main(int argc, char *const *argv)
|
|||
#endif
|
||||
|
||||
#if (NGX_CONTROL_API)
|
||||
if (ngx_process == NGX_PROCESS_SINGLE) {
|
||||
if (ngx_control_api_enabled && ngx_process == NGX_PROCESS_SINGLE) {
|
||||
ngx_log_error(NGX_LOG_WARN, cycle->log, 0,
|
||||
"control API unavailable in single process mode");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue