fix deprecated logging function in the modlib.php