diff options
author | Andrew Latham <lathama@gmail.com> | 2011-02-22 15:33:56 +0000 |
---|---|---|
committer | Andrew Latham <lathama@gmail.com> | 2011-02-22 15:33:56 +0000 |
commit | 736133f874f270be81810c2c1fb36c47e6a479bf (patch) | |
tree | 6e2455c0e076ca03841a1d98e7c0bc08e4a4001f /main/http.c | |
parent | dad4fecc032670751fea6540c8b21d1aefa4c1ff (diff) |
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/trunk@308527 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/http.c')
-rw-r--r-- | main/http.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/main/http.c b/main/http.c index ec6f229ac..5d8579464 100644 --- a/main/http.c +++ b/main/http.c @@ -645,8 +645,7 @@ 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); + ast_debug(2, "HTTP Request URI is %s \n", uri); strsep(¶ms, "?"); /* Extract arguments from the request and store them in variables. */ @@ -790,9 +789,7 @@ static struct ast_variable *parse_cookies(char *cookies) continue; } - if (option_debug) { - ast_debug(1, "HTTP 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; |