When the task runs via cron, it does not set $USER and events are put into the log table under random users - I think because its remembering whatever the last cron task set it to.
see screenshot attached, users names have been hidden for privacy but they are all different, changing each cron run.
The users that are being logged are not even enrolled in the course.
When the task runs via cron, it does not set $USER and events are put into the log table under random users - I think because its remembering whatever the last cron task set it to.
see screenshot attached, users names have been hidden for privacy but they are all different, changing each cron run.
The users that are being logged are not even enrolled in the course.