log reference_id and transaction_id.