dect
/
asterisk
Archived
13
0
Fork 0

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
This commit is contained in:
lathama 2011-02-22 15:37:29 +00:00
parent 55307d9c15
commit 33d615f29b
1 changed files with 3 additions and 3 deletions

View File

@ -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;