Browse Source

feat(logging): add more logging for lnd service

Log all calls to lnd service methods so that we can get a better picture
of our intraprocess communication.
renovate/lint-staged-8.x
Tom Kirkpatrick 7 years ago
parent
commit
9a6b886901
No known key found for this signature in database GPG Key ID: 72203A8EC5967EA8
  1. 1
      app/lnd/methods/index.js
  2. 1
      app/lnd/walletUnlockerMethods/index.js

1
app/lnd/methods/index.js

@ -18,6 +18,7 @@ import * as networkController from './networkController'
// TODO - DeleteAllPayments
export default function(lnd, log, event, msg, data) {
log.info(`Calling lnd method: %o`, { msg, data })
switch (msg) {
case 'info':
networkController

1
app/lnd/walletUnlockerMethods/index.js

@ -1,6 +1,7 @@
import * as walletController from '../methods/walletController'
export default function(walletUnlocker, log, event, msg, data) {
log.info(`Calling walletUnlocker method '${msg}'`)
switch (msg) {
case 'genSeed':
walletController

Loading…
Cancel
Save