From: Andrew Latham Date: Tue, 22 Feb 2011 15:37:29 +0000 (+0000) Subject: Add HTTP URI log, use ast_debug for console logging X-Git-Tag: 1.6.2.18-rc1~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2cb53e3d98ace8854756e6a270f5b23b43c79088;p=thirdparty%2Fasterisk.git 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: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@308528 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/main/http.c b/main/http.c index 59164d7500..ad688965a0 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(¶ms, "?"); @@ -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;