Fix Errors on the RecordTrac Page

This also adds some logging functionality.