fix deprecated logging action in the modlib.php