aboutsummaryrefslogtreecommitdiffstats
path: root/routes/bitcoin/send.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2020-04-30 00:05:37 -0400
committerAdam Soltys <[email protected]>2020-04-30 00:05:37 -0400
commitc5545d98aed3eaac4f88cdc3a9f3d7d9e7204134 (patch)
treea14213bcad22d9a0f331b6073e15308fe015177c /routes/bitcoin/send.js
parent53b76aa961bdd4b8daa6cb8a8f002373546cd7f7 (diff)
parentfa84d5a65844602c7e97e9bf0e5a51befdebaf53 (diff)
downloadcoinos-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.js4
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");
}