]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Make sure that the debug line is not printed on debug level 0
authorOlle Johansson <oej@edvina.net>
Sun, 15 Feb 2009 19:48:38 +0000 (19:48 +0000)
committerOlle Johansson <oej@edvina.net>
Sun, 15 Feb 2009 19:48:38 +0000 (19:48 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@175777 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 8191eb1307016ecf07f5698ab787b6b8b70d1195..e10128563c720a6ede17e40b2d241e6d9950e1ba 100644 (file)
@@ -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;