diff options
| author | Adam Soltys <[email protected]> | 2020-03-05 15:26:15 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2020-03-05 15:26:15 -0800 |
| commit | 43c2abbe6958a5de995b3cead5179ea3447ffca5 (patch) | |
| tree | c66eb017cef0c1612974edcfeb4bf154ca45ad4d /sendLiquid.js | |
| parent | cf89efeadbcfe0982b3f833a69fb9c0cd7cfb880 (diff) | |
| download | coinos-server-43c2abbe6958a5de995b3cead5179ea3447ffca5.tar.gz coinos-server-43c2abbe6958a5de995b3cead5179ea3447ffca5.zip | |
additional logging
Diffstat (limited to 'sendLiquid.js')
| -rw-r--r-- | sendLiquid.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sendLiquid.js b/sendLiquid.js index a4d9413e..855a2617 100644 --- a/sendLiquid.js +++ b/sendLiquid.js @@ -45,7 +45,7 @@ module.exports = (app, db, emit) => async (req, res) => { }); if (amount !== balance && total > balance) { - l.error("amount exceeds balance", amount, fee, balance); + l.warn("amount exceeds balance", { amount, fee, balance }); throw new Error("insufficient funds"); } @@ -84,6 +84,7 @@ module.exports = (app, db, emit) => async (req, res) => { { transaction } ); + l.info("sent liquid", user.username, total); emit(user.username, "payment", payment); res.send(payment); }); |
