Update logger network after modifying config

This commit is contained in:
softsimon
2023-03-21 16:21:11 +09:00
parent fa286e066e
commit 1074d1920e
2 changed files with 6 additions and 1 deletions

View File

@@ -24,8 +24,9 @@ class LndApi implements AbstractLightningApi {
timeout: config.LND.TIMEOUT
};
} catch (e) {
logger.err(`Could not initialize LND Macaroon/TLS Cert. Disabling LIGHTNING. ` + (e instanceof Error ? e.message : e));
config.LIGHTNING.ENABLED = false;
logger.updateNetwork();
logger.err(`Could not initialize LND Macaroon/TLS Cert. Disabling LIGHTNING. ` + (e instanceof Error ? e.message : e));
}
}