Error logging for fatal exceptions

This commit is contained in:
emad-salah 2020-11-16 11:44:41 +01:00
parent f3ed131f3e
commit 26ce36fb8a

View file

@ -45,6 +45,8 @@ module.exports = async ({
includeDirs: ["node_modules/google-proto-files", "proto"]
}
logger.info("Proto file location:", lnrpcProtoPath, routerProtoPath);
const [lnrpcProto, routerProto, walletUnlockerProto] = await Promise.all([protoLoader.load(lnrpcProtoPath, protoLoaderConfig), protoLoader.load(routerProtoPath, protoLoaderConfig), protoLoader.load(walletUnlockerProtoPath, protoLoaderConfig)]);
const { lnrpc } = grpc.loadPackageDefinition(lnrpcProto);
const { routerrpc } = grpc.loadPackageDefinition(routerProto);