record_log_activity debugged and tested! :DDDDDDD