[svn-commits] lathama: branch 1.6.2 r308528 - /branches/1.6.2/main/http.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Tue Feb 22 09:37:36 CST 2011


Author: lathama
Date: Tue Feb 22 09:37:29 2011
New Revision: 308528

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=308528
Log:
Add HTTP URI log, use ast_debug for console logging

Guessed the log levels based on info that level 3
is the soft roof.  Can we create a page / document
to define the levels?

Modified:
    branches/1.6.2/main/http.c

Modified: branches/1.6.2/main/http.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.6.2/main/http.c?view=diff&rev=308528&r1=308527&r2=308528
==============================================================================
--- branches/1.6.2/main/http.c (original)
+++ branches/1.6.2/main/http.c Tue Feb 22 09:37:29 2011
@@ -441,6 +441,8 @@
 	struct ast_variable *vars = NULL, *v, *prev = NULL;
 	struct http_uri_redirect *redirect;
 	int saw_method = 0;
+
+	ast_debug(2, "HTTP Request URI is %s \n", uri);
 
 	/* preserve previous behavior of only support URI parameters on GET requests */
 	if (method == AST_HTTP_GET) {
@@ -653,9 +655,7 @@
 			continue;
 		}
 
-		if (option_debug) {
-			ast_log(LOG_DEBUG, "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__);
 		var->next = vars;




More information about the svn-commits mailing list