summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-07-18 19:49:12 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-07-18 19:49:12 +0200
commit3e6e19e838204e3cc93d46066eb47c7f44606584 (patch)
treebe9c6a68275916325df2d0df5b8e5b83e069593f /src
parent:bug: fix server options (diff)
downloadserver-3e6e19e838204e3cc93d46066eb47c7f44606584.tar.xz
:loud_sound: fix log
Diffstat (limited to 'src')
-rw-r--r--src/Server.ts3
1 files changed, 2 insertions, 1 deletions
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<Connection>); 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}`);