diff options
| author | Igor Sysoev <igor@sysoev.ru> | 2009-04-24 14:27:36 +0000 |
|---|---|---|
| committer | Igor Sysoev <igor@sysoev.ru> | 2009-04-24 14:27:36 +0000 |
| commit | c134eb058dc9a2a14921da8ea87926aca2cdab33 (patch) | |
| tree | ae8f94aaa2e48ff4a9c3032690d9641514bda8e7 /src/core | |
| parent | 7b9feda70b6814028aa9f7d5448c0b800f7f5691 (diff) | |
| download | nginx-c134eb058dc9a2a14921da8ea87926aca2cdab33.tar.gz nginx-c134eb058dc9a2a14921da8ea87926aca2cdab33.tar.bz2 | |
change ngx_log_create_errlog() interface
Diffstat (limited to 'src/core')
| -rw-r--r-- | src/core/ngx_log.c | 11 | ||||
| -rw-r--r-- | src/core/ngx_log.h | 2 |
2 files changed, 2 insertions, 11 deletions
diff --git a/src/core/ngx_log.c b/src/core/ngx_log.c index 209964058..58e1b0897 100644 --- a/src/core/ngx_log.c +++ b/src/core/ngx_log.c @@ -303,18 +303,9 @@ ngx_log_init(void) ngx_log_t * -ngx_log_create_errlog(ngx_cycle_t *cycle, ngx_array_t *args) +ngx_log_create_errlog(ngx_cycle_t *cycle, ngx_str_t *name) { ngx_log_t *log; - ngx_str_t *value, *name; - - if (args) { - value = args->elts; - name = &value[1]; - - } else { - name = NULL; - } log = ngx_pcalloc(cycle->pool, sizeof(ngx_log_t)); if (log == NULL) { diff --git a/src/core/ngx_log.h b/src/core/ngx_log.h index 5168cd8e9..ebdf7079b 100644 --- a/src/core/ngx_log.h +++ b/src/core/ngx_log.h @@ -196,7 +196,7 @@ void ngx_cdecl ngx_log_debug_core(ngx_log_t *log, ngx_err_t err, /*********************************/ ngx_log_t *ngx_log_init(void); -ngx_log_t *ngx_log_create_errlog(ngx_cycle_t *cycle, ngx_array_t *args); +ngx_log_t *ngx_log_create_errlog(ngx_cycle_t *cycle, ngx_str_t *name); char *ngx_set_error_log_levels(ngx_conf_t *cf, ngx_log_t *log); void ngx_log_abort(ngx_err_t err, const char *text, void *param); void ngx_cdecl ngx_log_stderr(ngx_err_t err, const char *fmt, ...); |
