[asterisk-commits] lathama: trunk r308372 - /trunk/main/http.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Feb 21 08:14:45 CST 2011


Author: lathama
Date: Mon Feb 21 08:14:41 2011
New Revision: 308372

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=308372
Log:
Add HTTP URI Debug logging and update notice

enable reporting of the request URI / URL in debugging
change funny debug note to a serious note.

Modified:
    trunk/main/http.c

Modified: trunk/main/http.c
URL: http://svnview.digium.com/svn/asterisk/trunk/main/http.c?view=diff&rev=308372&r1=308371&r2=308372
==============================================================================
--- trunk/main/http.c (original)
+++ trunk/main/http.c Mon Feb 21 08:14:41 2011
@@ -645,6 +645,9 @@
 	struct ast_variable *get_vars = NULL, *v, *prev = NULL;
 	struct http_uri_redirect *redirect;
 
+	if (option_debug > 4)
+		ast_verbose("HTTP Request URI is %s \n", uri);
+
 	strsep(&params, "?");
 	/* Extract arguments from the request and store them in variables. */
 	if (params) {
@@ -788,7 +791,7 @@
 		}
 
 		if (option_debug) {
-			ast_debug(1, "mmm ... cookie!  Name: '%s'  Value: '%s'\n", name, val);
+			ast_debug(1, "HTTP Cookie, Name: '%s'  Value: '%s'\n", name, val);
 		}
 
 		var = ast_variable_new(name, val, __FILE__);




More information about the asterisk-commits mailing list