Skip to content

Commit

Permalink
MDL-82854: Log for analytics callback stores raw data
Browse files Browse the repository at this point in the history
  • Loading branch information
jfederico committed Aug 21, 2024
1 parent e0a9cf2 commit fcae45a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions mod/bigbluebuttonbn/classes/broker.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ public static function process_meeting_events(instance $instance) {

// Get JSON string from the body.
$jsonstr = file_get_contents('php://input');
debugging("Payload received:\n$jsonstr", DEBUG_DEVELOPER);

// Convert JSON string to a JSON object.
$jsonobj = json_decode($jsonstr);
Expand Down
1 change: 1 addition & 0 deletions mod/bigbluebuttonbn/classes/meeting.php
Original file line number Diff line number Diff line change
Expand Up @@ -496,6 +496,7 @@ public static function meeting_events(instance $instance, object $data): string
$meta['internalmeetingid'] = $data->{'internal_meeting_id'};
$meta['callback'] = 'meeting_events';
$meta['meetingid'] = $data->{'meeting_id'};
$meta['data'] = $data->{'data'};

$eventcount = logger::log_event_callback($instance, $overrides, $meta);
if ($eventcount === 1) {
Expand Down

0 comments on commit fcae45a

Please sign in to comment.