aboutsummaryrefslogtreecommitdiffstats
path: root/routes/lightning/channel.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2022-09-02 15:06:43 -0700
committerAdam Soltys <[email protected]>2022-09-02 15:06:43 -0700
commitd1cc66d1a02b75f90fbf0c05910777c76228259a (patch)
tree7b93dc6a2fc0ec9d03676d6b4093fedf9733f128 /routes/lightning/channel.js
parent3161dd7ee95b6c7d70f8341298dd4fab84cda8b0 (diff)
downloadcoinos-server-d1cc66d1a02b75f90fbf0c05910777c76228259a.tar.gz
coinos-server-d1cc66d1a02b75f90fbf0c05910777c76228259a.zip
es6 migration
Diffstat (limited to 'routes/lightning/channel.js')
-rw-r--r--routes/lightning/channel.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/routes/lightning/channel.js b/routes/lightning/channel.js
index 168f55ab..4dbcfd20 100644
--- a/routes/lightning/channel.js
+++ b/routes/lightning/channel.js
@@ -4,7 +4,7 @@ export default async (req, res) => {
const { params } = req.body;
const [pubkey, host] = params.uri.split("@");
- l.info("connecting to peer", req.user.username, pubkey, host);
+ l("connecting to peer", req.user.username, pubkey, host);
let result;
try {
result = await lnp.connectPeer({
@@ -13,7 +13,7 @@ export default async (req, res) => {
});
} catch (e) {
if (!e.message.includes("already connected")) {
- l.error("problem connecting to peer", e.message);
+ err("problem connecting to peer", e.message);
return res.status(500).send(e.message);
}
}
@@ -23,7 +23,7 @@ export default async (req, res) => {
try {
remoteid = (await lnp.getInfo({})).identity_pubkey;
} catch (e) {
- l.error("problem getting lightning node info", e.message);
+ err("problem getting lightning node info", e.message);
return res.status(500).send(e.message);
}
@@ -33,7 +33,7 @@ export default async (req, res) => {
let response = await axios.get(url);
res.send(response.data);
} catch (e) {
- l.error("problem sending channel request", e.message);
+ err("problem sending channel request", e.message);
return res.status(500).send({ status: "ERROR", reason: e.message });
}
};