]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Add HTTP URI log, use ast_debug for console logging
authorAndrew Latham <lathama@gmail.com>
Tue, 22 Feb 2011 15:37:29 +0000 (15:37 +0000)
committerAndrew Latham <lathama@gmail.com>
Tue, 22 Feb 2011 15:37:29 +0000 (15:37 +0000)
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

main/http.c

index 59164d7500b63f3fafc218926edb8293c2ff7328..ad688965a080e7202109022b09fa67f5b175a199 100644 (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;