]> git.mjollnir.org Git - moodle.git/commitdiff
Merged MDL-13544 Removed logging of cleanremoteaddr from logs
authormoodler <moodler>
Wed, 20 Feb 2008 07:02:14 +0000 (07:02 +0000)
committermoodler <moodler>
Wed, 20 Feb 2008 07:02:14 +0000 (07:02 +0000)
lib/moodlelib.php

index ac4e13a3c62b34e68d370e9610ff72d3f42ba87f..3d42e9f09274b9ccc39aee8bc228fd840a040805 100644 (file)
@@ -7345,8 +7345,10 @@ function cleanremoteaddr($addr) {
     if (count($goodmatches) == 1) {
         return $goodmatches[0];
     }
-    error_log("NOTICE: cleanremoteaddr gives us something funny: $originaladdr had ".count($goodmatches)." matches");
-    // we need to return something, so
+    //Commented out following because there are so many, and it clogs the logs   MDL-13544
+    //error_log("NOTICE: cleanremoteaddr gives us something funny: $originaladdr had ".count($goodmatches)." matches");
+
+    // We need to return something, so return the first
     return array_pop($goodmatches);
 }