comparison src/core/ngx_log.c @ 278:0ba4821f4460

nginx-0.0.2-2004-03-04-10:04:55 import
author Igor Sysoev <igor@sysoev.ru>
date Thu, 04 Mar 2004 07:04:55 +0000
parents 5238e93961a1
children 87e73f067470
comparison
equal deleted inserted replaced
277:e91499541410 278:0ba4821f4460
45 "debug_core", "debug_alloc", "debug_event", "debug_http" 45 "debug_core", "debug_alloc", "debug_event", "debug_http"
46 }; 46 };
47 47
48 48
49 #if (HAVE_VARIADIC_MACROS) 49 #if (HAVE_VARIADIC_MACROS)
50 void ngx_log_error_core(int level, ngx_log_t *log, ngx_err_t err, 50 void ngx_log_error_core(ngx_uint_t level, ngx_log_t *log, ngx_err_t err,
51 const char *fmt, ...) 51 const char *fmt, ...)
52 #else 52 #else
53 void ngx_log_error_core(int level, ngx_log_t *log, ngx_err_t err, 53 void ngx_log_error_core(ngx_uint_t level, ngx_log_t *log, ngx_err_t err,
54 const char *fmt, va_list args) 54 const char *fmt, va_list args)
55 #endif 55 #endif
56 { 56 {
57 char errstr[MAX_ERROR_STR]; 57 char errstr[MAX_ERROR_STR];
58 size_t len, max; 58 size_t len, max;
174 } 174 }
175 175
176 176
177 #if !(HAVE_VARIADIC_MACROS) 177 #if !(HAVE_VARIADIC_MACROS)
178 178
179 void ngx_log_error(int level, ngx_log_t *log, ngx_err_t err, 179 void ngx_log_error(ngx_uint_t level, ngx_log_t *log, ngx_err_t err,
180 const char *fmt, ...) 180 const char *fmt, ...)
181 { 181 {
182 va_list args; 182 va_list args;
183 183
184 if (log->log_level >= level) { 184 if (log->log_level >= level) {