From 3e6e19e838204e3cc93d46066eb47c7f44606584 Mon Sep 17 00:00:00 2001 From: Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> Date: Sun, 18 Jul 2021 19:49:12 +0200 Subject: :loud_sound: fix log --- src/Server.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/Server.ts') diff --git a/src/Server.ts b/src/Server.ts index a0a2926e..d53a8898 100644 --- a/src/Server.ts +++ b/src/Server.ts @@ -24,6 +24,7 @@ export class Server { server: this.server, }); this.ws.on("connection", Connection); + this.ws.on("error", console.error); } async setupSchema() { @@ -36,7 +37,7 @@ export class Server { await (db as Promise); await this.setupSchema(); await Config.init(); - console.log("[DB] connected"); + console.log("[Database] connected"); if (!this.server.listening) { this.server.listen(this.port); console.log(`[Gateway] online on 0.0.0.0:${this.port}`); -- cgit 1.5.1