Locate the line:
Add the following line before the line above:
file_put_contents(BP . '/var/log/events.log', "$eventName\n", FILE_APPEND);
Locate the line:
Add the following line before the line above:
file_put_contents(BP . '/var/log/events.log', "$eventName\n", FILE_APPEND);