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

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Feb 22 09:34:00 CST 2011


Author: lathama
Date: Tue Feb 22 09:33:56 2011
New Revision: 308527

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=308527
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:
    trunk/main/http.c

Modified: trunk/main/http.c
URL: http://svnview.digium.com/svn/asterisk/trunk/main/http.c?view=diff&rev=308527&r1=308526&r2=308527
==============================================================================
--- trunk/main/http.c (original)
+++ trunk/main/http.c Tue Feb 22 09:33:56 2011
@@ -645,8 +645,7 @@
 	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);
+	ast_debug(2, "HTTP Request URI is %s \n", uri);
 
 	strsep(&params, "?");
 	/* Extract arguments from the request and store them in variables. */
@@ -790,9 +789,7 @@
 			continue;
 		}
 
-		if (option_debug) {
-			ast_debug(1, "HTTP 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 asterisk-commits mailing list