aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2021-12-05 04:28:39 -0500
committerAdam Soltys <[email protected]>2021-12-05 04:28:39 -0500
commit2993a6ccd48c18d21dd52fb08c6fdf9eeda4b8d8 (patch)
tree6275791e15d5d852a0346a3d5b379fedbab22bfd
parent2077da9764fa227473356cb23a7d04712cdc14bd (diff)
downloadcoinos-server-2993a6ccd48c18d21dd52fb08c6fdf9eeda4b8d8.tar.gz
coinos-server-2993a6ccd48c18d21dd52fb08c6fdf9eeda4b8d8.zip
lnurl debugging
-rw-r--r--ecosystem.config.js2
-rw-r--r--routes/lnurl.js2
2 files changed, 3 insertions, 1 deletions
diff --git a/ecosystem.config.js b/ecosystem.config.js
index ff546fb8..bd14074f 100644
--- a/ecosystem.config.js
+++ b/ecosystem.config.js
@@ -6,9 +6,11 @@ module.exports = {
script: "index.js",
env: {
COMMON_VARIABLE: "true",
+ DEBUG: "lnurl*",
},
env_production: {
NODE_ENV: "production",
+ DEBUG: "lnurl*",
},
},
],
diff --git a/routes/lnurl.js b/routes/lnurl.js
index 71ffe55a..1e6da0e7 100644
--- a/routes/lnurl.js
+++ b/routes/lnurl.js
@@ -308,9 +308,9 @@ lnurlServer.bindToHook(
}
const recipient = recipients[secret];
- l.info("lnurl recipient", recipient.username);
if (recipient) {
+ l.info("lnurl recipient", recipient.username);
setTimeout(async () => {
try {
let result = await lnp.listInvoices({