diff options
| author | Adam Soltys <[email protected]> | 2021-12-05 04:28:39 -0500 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2021-12-05 04:28:39 -0500 |
| commit | 2993a6ccd48c18d21dd52fb08c6fdf9eeda4b8d8 (patch) | |
| tree | 6275791e15d5d852a0346a3d5b379fedbab22bfd | |
| parent | 2077da9764fa227473356cb23a7d04712cdc14bd (diff) | |
| download | coinos-server-2993a6ccd48c18d21dd52fb08c6fdf9eeda4b8d8.tar.gz coinos-server-2993a6ccd48c18d21dd52fb08c6fdf9eeda4b8d8.zip | |
lnurl debugging
| -rw-r--r-- | ecosystem.config.js | 2 | ||||
| -rw-r--r-- | routes/lnurl.js | 2 |
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({ |
