MDL-40919 mod_survey: replaced add_to_log with events