diff options
| author | Adam Soltys <[email protected]> | 2020-04-29 14:16:43 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2020-04-29 14:16:43 -0700 |
| commit | 001c0291ad6eabe5684138422adfa0e851d507a6 (patch) | |
| tree | fbeaa723004504d2ea8865793d129d8da38df24a | |
| parent | c03559bd7285d6608974ab02be78b859a6cac689 (diff) | |
| download | coinos-server-001c0291ad6eabe5684138422adfa0e851d507a6.tar.gz coinos-server-001c0291ad6eabe5684138422adfa0e851d507a6.zip | |
quieter lightning logs
| -rw-r--r-- | routes/lightning/receive.js | 7 | ||||
| -rw-r--r-- | routes/lightning/send.js | 2 |
2 files changed, 4 insertions, 5 deletions
diff --git a/routes/lightning/receive.js b/routes/lightning/receive.js index 97fe07dc..403eb999 100644 --- a/routes/lightning/receive.js +++ b/routes/lightning/receive.js @@ -30,7 +30,7 @@ const handlePayment = async msg => { rate, received: true, confirmed: true, - network: 'LNBTC', + network: "LNBTC", tip }); @@ -42,7 +42,7 @@ const handlePayment = async msg => { await payment.save(); payments.push(msg.payment_request); - let user = await getUserById(user_id) + let user = await getUserById(user_id); payment = payment.get({ plain: true }); payment.account = account.get({ plain: true }); @@ -53,8 +53,7 @@ const handlePayment = async msg => { "lightning payment received", user.username, payment.amount, - payment.tip, - msg + payment.tip ); }; diff --git a/routes/lightning/send.js b/routes/lightning/send.js index 6f21cc9b..22c7627a 100644 --- a/routes/lightning/send.js +++ b/routes/lightning/send.js @@ -82,7 +82,7 @@ module.exports = async (req, res) => { payment.account = account.get({ plain: true }); seen.push(m.payment_preimage); - l.info("sent lightning", user.username, -payment.amount, m); + l.info("sent lightning", user.username, -payment.amount); user = await getUser(user.username); emit(user.username, "user", user); |
