diff --git a/lib/cash-out/cash-out-tx.js b/lib/cash-out/cash-out-tx.js index 838971cb..7d98834b 100644 --- a/lib/cash-out/cash-out-tx.js +++ b/lib/cash-out/cash-out-tx.js @@ -36,8 +36,8 @@ function selfPost (tx, pi) { } function post (tx, pi, fromClient = true) { - logger.silly('Updating cashout -- tx:', tx) - logger.silly('Updating cashout -- fromClient:', fromClient) + logger.silly('Updating cashout -- tx:', JSON.stringify(tx)) + logger.silly('Updating cashout -- fromClient:', JSON.stringify(fromClient)) return cashOutAtomic.atomic(tx, pi, fromClient) .then(txVector => { const [, newTx, justAuthorized] = txVector @@ -64,7 +64,7 @@ function postProcess (txVector, justAuthorized, pi) { fiat: newTx.fiat }) const bills = billMath.makeChange(cassettes.cassettes, newTx.fiat) - logger.silly('Bills to dispense:', bills) + logger.silly('Bills to dispense:', JSON.stringify(bills)) if (!bills) throw httpError('Out of bills', INSUFFICIENT_FUNDS_CODE) return bills