Browse Source

Merge pull request #550 from mrfelton/fix/lnd-log-level

Don't log successful results from lnd as errors
renovate/lint-staged-8.x
Ben Woosley 7 years ago
committed by GitHub
parent
commit
cadf0407d5
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 12
      app/lnd/methods/index.js

12
app/lnd/methods/index.js

@ -179,7 +179,7 @@ export default function(lnd, log, event, msg, data) {
.then(payment => { .then(payment => {
log.info('payment:', payment) log.info('payment:', payment)
const { payment_route } = payment const { payment_route } = payment
log.error('payinvoice success:', payment_route) log.info('payinvoice success:', payment_route)
event.sender.send('paymentSuccessful', Object.assign(data, { payment_route })) event.sender.send('paymentSuccessful', Object.assign(data, { payment_route }))
return payment return payment
}) })
@ -207,7 +207,7 @@ export default function(lnd, log, event, msg, data) {
channelController channelController
.openChannel(lnd, event, data) .openChannel(lnd, event, data)
.then(channel => { .then(channel => {
log.error('CHANNEL: ', channel) log.info('CHANNEL: ', channel)
event.sender.send('channelSuccessful', { channel }) event.sender.send('channelSuccessful', { channel })
return channel return channel
}) })
@ -219,7 +219,7 @@ export default function(lnd, log, event, msg, data) {
channelController channelController
.closeChannel(lnd, event, data) .closeChannel(lnd, event, data)
.then(result => { .then(result => {
log.error('CLOSE CHANNEL: ', result) log.info('CLOSE CHANNEL: ', result)
event.sender.send('closeChannelSuccessful') event.sender.send('closeChannelSuccessful')
return result return result
}) })
@ -232,7 +232,7 @@ export default function(lnd, log, event, msg, data) {
.connectPeer(lnd, data) .connectPeer(lnd, data)
.then(peer => { .then(peer => {
const { peer_id } = peer const { peer_id } = peer
log.error('peer_id: ', peer_id) log.info('peer_id: ', peer_id)
event.sender.send('connectSuccess', { pub_key: data.pubkey, address: data.host, peer_id }) event.sender.send('connectSuccess', { pub_key: data.pubkey, address: data.host, peer_id })
return peer return peer
}) })
@ -247,7 +247,7 @@ export default function(lnd, log, event, msg, data) {
peersController peersController
.disconnectPeer(lnd, data) .disconnectPeer(lnd, data)
.then(() => { .then(() => {
log.error('pubkey: ', data.pubkey) log.info('pubkey: ', data.pubkey)
event.sender.send('disconnectSuccess', { pubkey: data.pubkey }) event.sender.send('disconnectSuccess', { pubkey: data.pubkey })
return null return null
}) })
@ -259,7 +259,7 @@ export default function(lnd, log, event, msg, data) {
channelController channelController
.connectAndOpen(lnd, event, data) .connectAndOpen(lnd, event, data)
.then(channelData => { .then(channelData => {
log.error('connectAndOpen data: ', channelData) log.info('connectAndOpen data: ', channelData)
// event.sender.send('connectSuccess', { pub_key: data.pubkey, address: data.host, peer_id }) // event.sender.send('connectSuccess', { pub_key: data.pubkey, address: data.host, peer_id })
return channelData return channelData
}) })

Loading…
Cancel
Save