You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by br...@apache.org on 2008/11/05 20:31:48 UTC

svn commit: r711673 - /httpd/mod_wombat/trunk/request.c

Author: brianm
Date: Wed Nov  5 11:31:47 2008
New Revision: 711673

URL: http://svn.apache.org/viewvc?rev=711673&view=rev
Log:
slighty more clear debug logging

Modified:
    httpd/mod_wombat/trunk/request.c

Modified: httpd/mod_wombat/trunk/request.c
URL: http://svn.apache.org/viewvc/httpd/mod_wombat/trunk/request.c?rev=711673&r1=711672&r2=711673&view=diff
==============================================================================
--- httpd/mod_wombat/trunk/request.c (original)
+++ httpd/mod_wombat/trunk/request.c Wed Nov  5 11:31:47 2008
@@ -276,7 +276,6 @@
 static int req_dispatch(lua_State* L) {
     request_rec* r = check_request_rec(L, 1);
     const char *name = luaL_checkstring(L, 2);
-    ap_log_rerror(APLOG_MARK, APLOG_DEBUG, 0, r, "dispatching %s", name);
     lua_pop(L, 2);
  
     lua_getfield(L, LUA_REGISTRYINDEX, "Apache2.Request.dispatch");
@@ -285,35 +284,35 @@
     
     req_fun_t* rft = apr_hash_get(dispatch, name, APR_HASH_KEY_STRING);
     if (rft) {
-        ap_log_rerror(APLOG_MARK, APLOG_DEBUG, 0, r, "rft -> %d, type -> %d", (int)rft, rft->type);
         switch(rft->type) {
             case APW_REQ_FUNTYPE_TABLE: {
-                ap_log_rerror(APLOG_MARK, APLOG_DEBUG, 0, r, "%s -> apr table (NOT IMPLEMENTED YET)", name);
+                ap_log_rerror(APLOG_MARK, APLOG_DEBUG, 0, r, 
+                              "request_rec->dispatching %s -> apr table (NOT IMPLEMENTED YET)", name);
                 return 0;
             }
             
             case APW_REQ_FUNTYPE_LUACFUN: {
-                ap_log_rerror(APLOG_MARK, APLOG_DEBUG, 0, r, "%s -> lua_CFunction", name);
+                ap_log_rerror(APLOG_MARK, APLOG_DEBUG, 0, r, "request_rec->dispatching %s -> lua_CFunction", name);
                 lua_CFunction func = rft->fun;
                 lua_pushcfunction(L, func);      
                 return 1;                
             }
             case APW_REQ_FUNTYPE_STRING: {
-                ap_log_rerror(APLOG_MARK, APLOG_DEBUG, 0, r, "%s -> string", name);
+                ap_log_rerror(APLOG_MARK, APLOG_DEBUG, 0, r, "request_rec->dispatching %s -> string", name);
                 req_field_string_f func = rft->fun;
                 char* rs = (*func)(r);
                 lua_pushstring(L, rs);
                 return 1;                
             }
             case APW_REQ_FUNTYPE_INT: {
-                ap_log_rerror(APLOG_MARK, APLOG_DEBUG, 0, r, "%s -> int", name);
+                ap_log_rerror(APLOG_MARK, APLOG_DEBUG, 0, r, "request_rec->dispatching %s -> int", name);
                 req_field_int_f func = rft->fun;
                 int rs = (*func)(r);
                 lua_pushnumber(L, rs);
                 return 1;                
             }
             case APW_REQ_FUNTYPE_BOOLEAN: {
-                ap_log_rerror(APLOG_MARK, APLOG_DEBUG, 0, r, "%s -> boolean", name);
+                ap_log_rerror(APLOG_MARK, APLOG_DEBUG, 0, r, "request_rec->dispatching %s -> boolean", name);
                 req_field_int_f func = rft->fun;
                 int rs = (*func)(r);
                 lua_pushboolean(L, rs);