get_record can be an expensive operation (calling out to a database). It doesn't make sense to use it just for a log message.