diff options
author | lathama <lathama@f38db490-d61c-443f-a65b-d21fe96a405b> | 2011-02-22 15:31:14 +0000 |
---|---|---|
committer | lathama <lathama@f38db490-d61c-443f-a65b-d21fe96a405b> | 2011-02-22 15:31:14 +0000 |
commit | 466be071367e2490fc9b38efce7b0fb70becdb90 (patch) | |
tree | 114fd8bb27c0ee53ea54532671ee55f9d6dfff82 /main | |
parent | faa986043fc05b6041bcd7926bb0b4f3cf40bd89 (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: http://svn.digium.com/svn/asterisk/branches/1.8@308526 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main')
-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 58743b931..d5fa18f53 100644 --- a/main/http.c +++ b/main/http.c @@ -661,8 +661,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. */ @@ -806,9 +805,7 @@ static struct ast_variable *parse_cookies(char *cookies) continue; } - if (option_debug) { - ast_log(LOG_DEBUG, "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; |