MDL-40912 coursecat: replaced 'move' add_to_log calls with an event