--- /home/jamey/tmp/jk_uri_worker_map.c Mon Jan 22 13:13:03 2001
+++ jk/jk_uri_worker_map.c      Mon Jan 22 13:33:10 2001
@@ -358,6 +358,7 @@
             uri = clean_uri;
         }

+               jk_log(l, JK_LOG_DEBUG, "Attempting to map URI %s\n", uri);
         for(i = 0 ; i < uw_map->size ; i++) {

             if(uw_map->maps[i].ctxt_len < longest_match) {
@@ -369,10 +370,20 @@
                             uw_map->maps[i].ctxt_len)) {
                 if(MATCH_TYPE_EXACT == uw_map->maps[i].match_type) {
                     if(strlen(uri) == uw_map->maps[i].ctxt_len) {
+                                   jk_log(     l,
+                                               JK_LOG_DEBUG,
+                                                               
+"jk_uri_worker_map_t::map_uri_to_worker, Found an exact match %s ->
%s\n",
+                                                               
+uw_map->maps[i].worker_name,
+                                                               
+uw_map->maps[i].context );
                         return uw_map->maps[i].worker_name;
                     }
                 } else if(MATCH_TYPE_CONTEXT == uw_map->maps[i].match_type)
{
                     if(uw_map->maps[i].ctxt_len > longest_match) {
+                                   jk_log(     l,
+                                               JK_LOG_DEBUG,
+                                                               
+"jk_uri_worker_map_t::map_uri_to_worker, Found a context match
%s -> %s\n",
+                                                               
+uw_map->maps[i].worker_name,
+                                                               
+uw_map->maps[i].context );
                         longest_match = uw_map->maps[i].ctxt_len;
                         best_match = i;
                     }
@@ -393,6 +404,11 @@
                         if(0 == strcmp(suffix, uw_map->maps[i].suffix)) {
 #endif
                             if(uw_map->maps[i].ctxt_len >= longest_match) {
+                                                   jk_log(     l,
+                                                               JK_LOG_DEBUG,
+                                                                               
+"jk_uri_worker_map_t::map_uri_to_worker, Found a suffix match
%s -> *.%s\n",
+                                                                               
+uw_map->maps[i].worker_name,
+                                                                               
+uw_map->maps[i].suffix );
                                 longest_match = uw_map->maps[i].ctxt_len;
                                 best_match = i;
                             }
@@ -403,10 +419,6 @@
         }

         if(-1 != best_match) {
-            jk_log(l, JK_LOG_DEBUG,
-                   "jk_uri_worker_map_t::map_uri_to_worker, Found a match
%s\n",
-                   uw_map->maps[best_match].worker_name);
-
             return uw_map->maps[best_match].worker_name;
         } else {
             /*


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to