More error logging
This commit is contained in:
parent
53016c7a05
commit
e318e46a54
2 changed files with 2 additions and 1 deletions
|
|
@ -73,6 +73,7 @@ module.exports = async (protoPath, lndHost, lndCertPath, macaroonPath) => {
|
||||||
throw error;
|
throw error;
|
||||||
}
|
}
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
logger.error(err);
|
||||||
if (err.code === 14) {
|
if (err.code === 14) {
|
||||||
throw {
|
throw {
|
||||||
field: "unknown",
|
field: "unknown",
|
||||||
|
|
|
||||||
|
|
@ -242,7 +242,7 @@ const server = program => {
|
||||||
// console.log('t', t.url);
|
// console.log('t', t.url);
|
||||||
// });
|
// });
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.error(err);
|
logger.error(err);
|
||||||
logger.info("Restarting server in 30 seconds...");
|
logger.info("Restarting server in 30 seconds...");
|
||||||
await wait(30);
|
await wait(30);
|
||||||
startServer();
|
startServer();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue