Notification flag hot fixed
Added logging for email notifications