comparison src/mail/ngx_mail.c @ 2785:d478379e51ac

*) 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
author Igor Sysoev <igor@sysoev.ru>
date Thu, 30 Apr 2009 13:53:42 +0000
parents 109849282793
children 268d8d3faa34
comparison
equal deleted inserted replaced
2784:c2230102df6f 2785:d478379e51ac
311 311
312 ls->addr_ntop = 1; 312 ls->addr_ntop = 1;
313 ls->handler = ngx_mail_init_connection; 313 ls->handler = ngx_mail_init_connection;
314 ls->pool_size = 256; 314 ls->pool_size = 256;
315 315
316 /* STUB */ 316 /* TODO: error_log directive */
317 ls->log = *cf->cycle->new_log; 317 ls->logp = &cf->cycle->new_log;
318 ls->log.data = &ls->addr_text; 318 ls->log.data = &ls->addr_text;
319 ls->log.handler = ngx_accept_log_error; 319 ls->log.handler = ngx_accept_log_error;
320 /**/
321 320
322 imip = ngx_palloc(cf->pool, sizeof(ngx_mail_in_port_t)); 321 imip = ngx_palloc(cf->pool, sizeof(ngx_mail_in_port_t));
323 if (imip == NULL) { 322 if (imip == NULL) {
324 return NGX_CONF_ERROR; 323 return NGX_CONF_ERROR;
325 } 324 }