From fcae45add9894f7ac1767bbad7b497dab461938d Mon Sep 17 00:00:00 2001 From: jfedericobn Date: Wed, 21 Aug 2024 13:59:28 +0000 Subject: [PATCH] MDL-82854: Log for analytics callback stores raw data --- mod/bigbluebuttonbn/classes/broker.php | 1 + mod/bigbluebuttonbn/classes/meeting.php | 1 + 2 files changed, 2 insertions(+) diff --git a/mod/bigbluebuttonbn/classes/broker.php b/mod/bigbluebuttonbn/classes/broker.php index 3c48634df31c9..982edb29e57d1 100644 --- a/mod/bigbluebuttonbn/classes/broker.php +++ b/mod/bigbluebuttonbn/classes/broker.php @@ -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); diff --git a/mod/bigbluebuttonbn/classes/meeting.php b/mod/bigbluebuttonbn/classes/meeting.php index 095a09d8a20c4..b65af88db022f 100644 --- a/mod/bigbluebuttonbn/classes/meeting.php +++ b/mod/bigbluebuttonbn/classes/meeting.php @@ -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) {