MDL-46455 event: Make the debugging messages print the event class.

Because they are in the base class, it was impossible to find which event
triggered the debugging.
This commit is contained in:
Damyon Wiese
2015-10-11 18:14:58 -07:00
committed by Mark Nelson
parent 0817451470
commit 63b5a5faad
+2 -2
View File
@@ -511,7 +511,7 @@ abstract class base implements \IteratorAggregate {
* @return string the name of the restore mapping the objectid links to
*/
public static function get_objectid_mapping() {
debugging('In order to restore course logs accurately the event must define the
debugging('In order to restore course logs accurately the event "' . get_called_class() . '" must define the
function get_objectid_mapping().', DEBUG_DEVELOPER);
return false;
@@ -552,7 +552,7 @@ abstract class base implements \IteratorAggregate {
* @return array an array of other values and their corresponding mapping
*/
public static function get_other_mapping() {
debugging('In order to restore course logs accurately the event must define the
debugging('In order to restore course logs accurately the event "' . get_called_class() . '" must define the
function get_other_mapping().', DEBUG_DEVELOPER);
}