From: Olle Johansson Date: Sun, 15 Feb 2009 19:48:38 +0000 (+0000) Subject: Make sure that the debug line is not printed on debug level 0 X-Git-Tag: 1.4.24-rc1~59 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ada21a8039a69816e5d645aa50edc34a0938060f;p=thirdparty%2Fasterisk.git Make sure that the debug line is not printed on debug level 0 git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@175777 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 8191eb1307..e10128563c 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -11871,7 +11871,8 @@ static int build_reply_digest(struct sip_pvt *p, int method, char* digest, int d auth = find_realm_authentication(authl, p->realm); /* If not, global list */ if (auth) { - ast_log(LOG_DEBUG, "use realm [%s] from peer [%s][%s]\n", auth->username, p->peername, p->username); + if (sipdebug && option_debug > 1) + ast_log(LOG_DEBUG, "use realm [%s] from peer [%s][%s]\n", auth->username, p->peername, p->username); username = auth->username; secret = auth->secret; md5secret = auth->md5secret;