From 9a6b8869011c356d722f131733025be442210a7b Mon Sep 17 00:00:00 2001 From: Tom Kirkpatrick Date: Wed, 4 Jul 2018 01:20:45 +0200 Subject: [PATCH] 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. --- app/lnd/methods/index.js | 1 + app/lnd/walletUnlockerMethods/index.js | 1 + 2 files changed, 2 insertions(+) diff --git a/app/lnd/methods/index.js b/app/lnd/methods/index.js index 3c2a2521..4e081765 100644 --- a/app/lnd/methods/index.js +++ b/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 diff --git a/app/lnd/walletUnlockerMethods/index.js b/app/lnd/walletUnlockerMethods/index.js index f7a28147..d6a754af 100644 --- a/app/lnd/walletUnlockerMethods/index.js +++ b/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