diff options
| author | Adam Soltys <[email protected]> | 2020-04-30 00:05:37 -0400 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2020-04-30 00:05:37 -0400 |
| commit | c5545d98aed3eaac4f88cdc3a9f3d7d9e7204134 (patch) | |
| tree | a14213bcad22d9a0f331b6073e15308fe015177c /routes/bitcoin/send.js | |
| parent | 53b76aa961bdd4b8daa6cb8a8f002373546cd7f7 (diff) | |
| parent | fa84d5a65844602c7e97e9bf0e5a51befdebaf53 (diff) | |
| download | coinos-server-c5545d98aed3eaac4f88cdc3a9f3d7d9e7204134.tar.gz coinos-server-c5545d98aed3eaac4f88cdc3a9f3d7d9e7204134.zip | |
Merge branch 'master' of https://github.com/asoltys/coinos-server
Diffstat (limited to 'routes/bitcoin/send.js')
| -rw-r--r-- | routes/bitcoin/send.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/routes/bitcoin/send.js b/routes/bitcoin/send.js index 42027f71..d9324028 100644 --- a/routes/bitcoin/send.js +++ b/routes/bitcoin/send.js @@ -31,7 +31,7 @@ module.exports = async (req, res) => { total = total - change + fee; let amount = total - fee; - l.info("attempting bitcoin payment", user.username, total, change, amount, fee); + l.info("attempting bitcoin payment", user.username, { total, change, amount, fee }); let account, params; try { @@ -46,7 +46,7 @@ module.exports = async (req, res) => { }); if (total > account.balance) { - l.error("amount exceeds balance", amount, fee, balance); + l.error("amount exceeds balance", amount, fee, account.balance); throw new Error("insufficient funds"); } |
