Merged MDL-13544 Removed logging of cleanremoteaddr from logs

This commit is contained in:
moodler 2008-02-20 07:02:14 +00:00
parent 1d20bb7d51
commit 004e11794a

View file

@ -7345,8 +7345,10 @@ function cleanremoteaddr($addr) {
if (count($goodmatches) == 1) { if (count($goodmatches) == 1) {
return $goodmatches[0]; return $goodmatches[0];
} }
error_log("NOTICE: cleanremoteaddr gives us something funny: $originaladdr had ".count($goodmatches)." matches"); //Commented out following because there are so many, and it clogs the logs MDL-13544
// we need to return something, so //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); return array_pop($goodmatches);
} }