debug log group for DNS blacklist lookup results
authorAntoine Musso <hashar@free.fr>
Tue, 24 Jul 2012 08:47:19 +0000 (10:47 +0200)
committerAntoine Musso <hashar@free.fr>
Thu, 2 Aug 2012 08:23:55 +0000 (10:23 +0200)
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

index 51877f8..df959df 100644 (file)
@@ -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" );
                                }
                        }
                }