MDL-40909 enrol_imsenterprise: replaced 'new' add_to_log call with an event