mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
Merged MDL-13544 Removed logging of cleanremoteaddr from logs
This commit is contained in:
parent
1d20bb7d51
commit
004e11794a
1 changed files with 4 additions and 2 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue