From 4ca354f3f8c03a0bdbf6263a5bf8480b439c80c8 Mon Sep 17 00:00:00 2001 From: Olle Johansson Date: Sun, 11 Feb 2007 19:15:55 +0000 Subject: [PATCH] Fix debug handling in acl.c git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@53914 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- main/acl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main/acl.c b/main/acl.c index e2caa2eee9..a3d60cb0df 100644 --- a/main/acl.c +++ b/main/acl.c @@ -212,7 +212,8 @@ int ast_apply_ha(struct ast_ha *ha, struct sockaddr_in *sin) /* DEBUG */ ast_copy_string(iabuf, ast_inet_ntoa(sin->sin_addr), sizeof(iabuf)); ast_copy_string(iabuf2, ast_inet_ntoa(ha->netaddr), sizeof(iabuf2)); - ast_log(LOG_DEBUG, "##### Testing %s with %s\n", iabuf, iabuf2); + if (option_debug) + ast_log(LOG_DEBUG, "##### Testing %s with %s\n", iabuf, iabuf2); /* For each rule, if this address and the netmask = the net address apply the current rule */ if ((sin->sin_addr.s_addr & ha->netmask.s_addr) == ha->netaddr.s_addr)