From ae8cc3e18be72c2e074ed33d7cfdc172f8e5f3b1 Mon Sep 17 00:00:00 2001 From: Matt O'Gorman Date: Tue, 3 Oct 2006 15:53:07 +0000 Subject: bug #8076 check option_debug before printing to debug channel. patch provided in bugnote, with minor changes. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@44253 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- main/http.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'main/http.c') diff --git a/main/http.c b/main/http.c index a59d7a58b..a1cd73a91 100644 --- a/main/http.c +++ b/main/http.c @@ -544,7 +544,8 @@ static void http_server_start(struct sockaddr_in *sin) /* Do nothing if nothing has changed */ if (!memcmp(&oldsin, sin, sizeof(oldsin))) { - ast_log(LOG_DEBUG, "Nothing changed in http\n"); + if (option_debug) + ast_log(LOG_DEBUG, "Nothing changed in http\n"); return; } -- cgit v1.2.3