Skip to content

Commit

Permalink
MDL-82854 mod_bigbluebuttonbn: Analytics callback log stores raw data
Browse files Browse the repository at this point in the history
* Backport of callback logs
  • Loading branch information
ssj365 committed Nov 18, 2024
1 parent 57f1fed commit f609f00
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mod/bigbluebuttonbn/classes/meeting.php
Original file line number Diff line number Diff line change
Expand Up @@ -500,6 +500,10 @@ public static function meeting_events(instance $instance, object $data): string
$meta['callback'] = 'meeting_events';
$meta['meetingid'] = $data->{'meeting_id'};

// Remove attendees from data to avoid duplicating callback logs; they are stored as summary logs.
$meta['data'] = clone $data->{'data'};
unset($meta['data']->{'attendees'});

$eventcount = logger::log_event_callback($instance, $overrides, $meta);
if ($eventcount === 1) {
// Process the events.
Expand Down

0 comments on commit f609f00

Please sign in to comment.