From 2993a6ccd48c18d21dd52fb08c6fdf9eeda4b8d8 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Sun, 5 Dec 2021 04:28:39 -0500 Subject: lnurl debugging --- ecosystem.config.js | 2 ++ routes/lnurl.js | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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({ -- cgit v1.2.3