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;
|
||||
}
|
||||
} catch (err) {
|
||||
logger.error(err);
|
||||
if (err.code === 14) {
|
||||
throw {
|
||||
field: "unknown",
|
||||
|
|
|
|||
|
|
@ -242,7 +242,7 @@ const server = program => {
|
|||
// console.log('t', t.url);
|
||||
// });
|
||||
} catch (err) {
|
||||
console.error(err);
|
||||
logger.error(err);
|
||||
logger.info("Restarting server in 30 seconds...");
|
||||
await wait(30);
|
||||
startServer();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue