From 2f065e6b3793f2c2d4ab196a341cf23efb721011 Mon Sep 17 00:00:00 2001 From: Madeline <46743919+MaddyUnderStars@users.noreply.github.com> Date: Tue, 10 Jan 2023 13:19:05 +1100 Subject: Move sentry init to util. use sentry in each module, not just bundle --- src/gateway/Server.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/gateway/Server.ts') diff --git a/src/gateway/Server.ts b/src/gateway/Server.ts index 7e1489be..48f1a7d9 100644 --- a/src/gateway/Server.ts +++ b/src/gateway/Server.ts @@ -1,7 +1,13 @@ import "missing-native-js-functions"; import dotenv from "dotenv"; dotenv.config(); -import { closeDatabase, Config, initDatabase, initEvent } from "@fosscord/util"; +import { + closeDatabase, + Config, + initDatabase, + initEvent, + Sentry, +} from "@fosscord/util"; import ws from "ws"; import { Connection } from "./events/Connection"; import http from "http"; @@ -50,6 +56,8 @@ export class Server { await initDatabase(); await Config.init(); await initEvent(); + await Sentry.init(); + if (!this.server.listening) { this.server.listen(this.port); console.log(`[Gateway] online on 0.0.0.0:${this.port}`); -- cgit 1.4.1