Fix logging of txn_id