From be2cfc3d28c90b0e911f22d6f14ce927b7f5bfad Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Sun, 15 Jun 2003 18:32:13 +0000 Subject: nginx-0.0.1-2003-06-15-22:32:13 import --- src/core/nginx.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/core/nginx.c') diff --git a/src/core/nginx.c b/src/core/nginx.c index 4f3be980c..28b5fa9fb 100644 --- a/src/core/nginx.c +++ b/src/core/nginx.c @@ -41,6 +41,7 @@ int main(int argc, char *const *argv) /* STUB */ ngx_log.log_level = NGX_LOG_DEBUG; #endif + log = ngx_log_init_errlog(); if (ngx_os_init(log) == NGX_ERROR) { @@ -230,6 +231,9 @@ static int ngx_open_listening_sockets(ngx_log_t *log) } if (failed) { + + /* TODO: configurable */ + ngx_log_error(NGX_LOG_EMERG, log, 0, "can not bind(), exiting"); return NGX_ERROR; } -- cgit v1.2.3