summary refs log tree commit diff
path: root/src/gateway/Server.ts
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2023-01-10 13:19:05 +1100
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2023-01-10 13:20:37 +1100
commit2f065e6b3793f2c2d4ab196a341cf23efb721011 (patch)
tree8966b0ec65d611d7b3a129e16d3276b58344ba44 /src/gateway/Server.ts
parentAdd error handler for individual gateway sockets (diff)
downloadserver-2f065e6b3793f2c2d4ab196a341cf23efb721011.tar.xz
Move sentry init to util. use sentry in each module, not just bundle
Diffstat (limited to 'src/gateway/Server.ts')
-rw-r--r--src/gateway/Server.ts10
1 files changed, 9 insertions, 1 deletions
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}`);