aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlathama <lathama@f38db490-d61c-443f-a65b-d21fe96a405b>2011-02-22 15:37:29 +0000
committerlathama <lathama@f38db490-d61c-443f-a65b-d21fe96a405b>2011-02-22 15:37:29 +0000
commit33d615f29b19ac11a8a47f1bbff1d7bab4451f01 (patch)
tree2301fdec302cb79078f85dfc0259f0b40395494f
parent55307d9c150e15c3a9e95558f7315ed75ae541b7 (diff)
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? git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@308528 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--main/http.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/main/http.c b/main/http.c
index 59164d750..ad688965a 100644
--- a/main/http.c
+++ b/main/http.c
@@ -442,6 +442,8 @@ static struct ast_str *handle_uri(struct ast_tcptls_session_instance *ser, char
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) {
strsep(&params, "?");
@@ -653,9 +655,7 @@ static struct ast_variable *parse_cookies(char *cookies)
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;