MDL-44107 add debugging to deprecated event::can_view()