2022-07-19 22:31:15 +00:00
|
|
|
import { start as startRpc } from "./rpc.js";
|
|
|
|
import { start as startRelay } from "./relay.js";
|
2022-07-24 00:24:19 +00:00
|
|
|
import log from "loglevel";
|
|
|
|
import config from "./config";
|
|
|
|
|
|
|
|
log.setDefaultLevel(config.str("log-level"));
|
2022-06-27 17:53:00 +00:00
|
|
|
|
2022-07-24 03:16:34 +00:00
|
|
|
async function boot() {
|
|
|
|
await startRpc();
|
|
|
|
await startRelay();
|
|
|
|
}
|
2022-06-27 17:53:00 +00:00
|
|
|
|
2022-07-25 06:50:27 +00:00
|
|
|
boot();
|
|
|
|
|
2022-06-27 17:53:00 +00:00
|
|
|
process.on("uncaughtException", function (err) {
|
2022-07-19 22:31:15 +00:00
|
|
|
console.log("Caught exception: " + err);
|
2022-06-27 17:53:00 +00:00
|
|
|
});
|