MDL-40920 mod_url: replaced add_to_log calls with events