comparison src/core/ngx_log.c @ 1042:63dec254cc4a

fix log message
author Igor Sysoev <igor@sysoev.ru>
date Thu, 18 Jan 2007 14:28:34 +0000
parents 1ce231663322
children c4f666fc3a7e
comparison
equal deleted inserted replaced
1041:6c8af39831e4 1042:63dec254cc4a
277 for (n = 1; n <= NGX_LOG_DEBUG; n++) { 277 for (n = 1; n <= NGX_LOG_DEBUG; n++) {
278 if (ngx_strcmp(value[i].data, err_levels[n]) == 0) { 278 if (ngx_strcmp(value[i].data, err_levels[n]) == 0) {
279 279
280 if (log->log_level != 0) { 280 if (log->log_level != 0) {
281 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, 281 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0,
282 "invalid log level \"%s\"", 282 "duplicate log level \"%s\"",
283 value[i].data); 283 value[i].data);
284 return NGX_CONF_ERROR; 284 return NGX_CONF_ERROR;
285 } 285 }
286 286
287 log->log_level = n; 287 log->log_level = n;