Skip to content

Commit

Permalink
MDL-46455 event: Make the debugging messages print the event class.
Browse files Browse the repository at this point in the history
Because they are in the base class, it was impossible to find which event
triggered the debugging.
  • Loading branch information
Damyon Wiese authored and mdjnelson committed Oct 12, 2015
1 parent 0817451 commit 63b5a5f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/classes/event/base.php
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ public static final function restore_legacy($legacy) {
* @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;
Expand Down Expand Up @@ -552,7 +552,7 @@ function get_objectid_mapping().', DEBUG_DEVELOPER);
* @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);
}

Expand Down

0 comments on commit 63b5a5f

Please sign in to comment.