accurate logging for modal alerts