From: moodler Date: Wed, 20 Feb 2008 07:02:14 +0000 (+0000) Subject: Merged MDL-13544 Removed logging of cleanremoteaddr from logs X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=004e11794ad19a8bf57c568ddb96cd239d0441b4;p=moodle.git Merged MDL-13544 Removed logging of cleanremoteaddr from logs --- diff --git a/lib/moodlelib.php b/lib/moodlelib.php index ac4e13a3c6..3d42e9f092 100644 --- a/lib/moodlelib.php +++ b/lib/moodlelib.php @@ -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); }