Fix undefined log function in Transaction.finalize()