diff options
author | Igor Sysoev <igor@sysoev.ru> | 2009-04-30 13:53:42 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2009-04-30 13:53:42 +0000 |
commit | 0cd76ea2902588a7f3baea47407c48956aaa19e6 (patch) | |
tree | 34e7bfe5726c80f084bd6a7f04a3d40b3e0cb877 /src/mail/ngx_mail.c | |
parent | 06d4aa1883034b6117a29887bc90a74ae433f3fd (diff) | |
download | nginx-0cd76ea2902588a7f3baea47407c48956aaa19e6.tar.gz nginx-0cd76ea2902588a7f3baea47407c48956aaa19e6.zip |
*) refactor error_log processing: listen socket log might inherit built-in
error_log with zero level, and r2447, r2466, r2467 were not enough
*) remove bogus "stderr" level
*) some functions and fields renames
Diffstat (limited to 'src/mail/ngx_mail.c')
-rw-r--r-- | src/mail/ngx_mail.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mail/ngx_mail.c b/src/mail/ngx_mail.c index aa77364de..1d6b78bdd 100644 --- a/src/mail/ngx_mail.c +++ b/src/mail/ngx_mail.c @@ -313,11 +313,10 @@ ngx_mail_block(ngx_conf_t *cf, ngx_command_t *cmd, void *conf) ls->handler = ngx_mail_init_connection; ls->pool_size = 256; - /* STUB */ - ls->log = *cf->cycle->new_log; + /* TODO: error_log directive */ + ls->logp = &cf->cycle->new_log; ls->log.data = &ls->addr_text; ls->log.handler = ngx_accept_log_error; - /**/ imip = ngx_palloc(cf->pool, sizeof(ngx_mail_in_port_t)); if (imip == NULL) { |