From 14f426ce96eabeed8d5bf3330367dc2f551c4d36 Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Tue, 24 Jul 2012 10:47:19 +0200 Subject: [PATCH] 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 --- includes/User.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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" ); } } } -- 2.20.1