changeset 2448:bbec98632208

log both overrlaped ranges
author Igor Sysoev <igor@sysoev.ru>
date Fri, 16 Jan 2009 15:47:05 +0000
parents 3d868fc44879
children 450a277dad48
files src/http/modules/ngx_http_geo_module.c
diffstat 1 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/http/modules/ngx_http_geo_module.c
+++ b/src/http/modules/ngx_http_geo_module.c
@@ -624,8 +624,14 @@ ngx_http_geo_add_range(ngx_conf_t *cf, n
                 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;
         }