aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlathama <lathama@f38db490-d61c-443f-a65b-d21fe96a405b>2011-02-21 14:24:43 +0000
committerlathama <lathama@f38db490-d61c-443f-a65b-d21fe96a405b>2011-02-21 14:24:43 +0000
commitc669157eb5e3e65cc308cf159caeadfac7088424 (patch)
tree7f0fa604b8826e27a0f520c21c43529196014942
parentc4f01ba20e8bde5675237789cd92473d9957d7d5 (diff)
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. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.8@308393 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--main/http.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/main/http.c b/main/http.c
index be4224ec9..58743b931 100644
--- a/main/http.c
+++ b/main/http.c
@@ -661,6 +661,9 @@ static int handle_uri(struct ast_tcptls_session_instance *ser, char *uri,
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) {
@@ -804,7 +807,7 @@ static struct ast_variable *parse_cookies(char *cookies)
}
if (option_debug) {
- ast_log(LOG_DEBUG, "mmm ... cookie! Name: '%s' Value: '%s'\n", name, val);
+ ast_log(LOG_DEBUG, "HTTP Cookie, Name: '%s' Value: '%s'\n", name, val);
}
var = ast_variable_new(name, val, __FILE__);