]> git.kaiwu.me - nginx.git/commitdiff
log both overrlaped ranges
authorIgor Sysoev <igor@sysoev.ru>
Fri, 16 Jan 2009 15:47:05 +0000 (15:47 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Fri, 16 Jan 2009 15:47:05 +0000 (15:47 +0000)
src/http/modules/ngx_http_geo_module.c

index 2ada4c85db9cf337da9231cd5041df0b0187bc1c..cbf67c2dc03461e81f5074e09955a7dc7354ba51 100644 (file)
@@ -624,8 +624,14 @@ ngx_http_geo_add_range(ngx_conf_t *cf, ngx_http_geo_conf_ctx_t *ctx,
                 goto next;
             }
 
+            s = (ngx_uint_t) range[i].start;
+            e = (ngx_uint_t) range[i].end;
+
             ngx_conf_log_error(NGX_LOG_EMERG, cf, 0,
-                               "overlapped range \"%V\"", ctx->net);
+                         "range \"%V\" overlaps \"%d.%d.%d.%d-%d.%d.%d.%d\"",
+                         ctx->net,
+                         h >> 8, h & 0xff, s >> 8, s & 0xff,
+                         h >> 8, h & 0xff, e >> 8, e & 0xff);
 
             return NGX_CONF_ERROR;
         }