From: Antoine Musso Date: Tue, 24 Jul 2012 08:47:19 +0000 (+0200) Subject: debug log group for DNS blacklist lookup results X-Git-Tag: 1.31.0-rc.0~22877^2 X-Git-Url: http://git.cyclocoop.org/%40spipnet%40?a=commitdiff_plain;h=14f426ce96eabeed8d5bf3330367dc2f551c4d36;p=lhc%2Fweb%2Fwiklou.git debug log group for DNS blacklist lookup results The 'beta' project uses DNS blacklist lookup to automatically block open proxy and active spammers. This patch simply creates the new 'dnsblacklist' debug group so we can easily log the lookup result. Change-Id: Idfc9fb2d3db4a0bb5387c76fdef07bf9e74eeff4 --- diff --git a/includes/User.php b/includes/User.php index 51877f8178..df959dfd90 100644 --- a/includes/User.php +++ b/includes/User.php @@ -1387,11 +1387,11 @@ class User { $ipList = gethostbynamel( $host ); if( $ipList ) { - wfDebug( "Hostname $host is {$ipList[0]}, it's a proxy says $base!\n" ); + wfDebugLog( 'dnsblacklist', "Hostname $host is {$ipList[0]}, it's a proxy says $base!\n" ); $found = true; break; } else { - wfDebug( "Requested $host, not found in $base.\n" ); + wfDebugLog( 'dnsblacklist', "Requested $host, not found in $base.\n" ); } } }