mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
Added mtrace function for printing information to standard output
This commit is contained in:
parent
69f78bcb59
commit
defaac4cee
2 changed files with 25 additions and 23 deletions
|
@ -2866,5 +2866,12 @@ function address_in_subnet($addr, $subnetstr) {
|
|||
return $found;
|
||||
}
|
||||
|
||||
function mtrace($string, $eol="\n") {
|
||||
// For outputting debugging info
|
||||
fwrite(STDOUT, $string.$eol);
|
||||
flush();
|
||||
}
|
||||
|
||||
|
||||
// vim:autoindent:expandtab:shiftwidth=4:tabstop=4:tw=140:
|
||||
?>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue