MDL-40917 mod_resource: replaced add_to_log with events