🔊 fix log

This commit is contained in:
Flam3rboy 2021-07-18 19:49:12 +02:00
parent 5acd0ad669
commit 3e6e19e838
3 changed files with 69 additions and 2222 deletions

2286
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -17,7 +17,7 @@
"ajv": "^8.5.0", "ajv": "^8.5.0",
"dotenv": "^8.2.0", "dotenv": "^8.2.0",
"jsonwebtoken": "^8.5.1", "jsonwebtoken": "^8.5.1",
"lambert-server": "^1.2.7", "lambert-server": "^1.2.8",
"missing-native-js-functions": "^1.2.3", "missing-native-js-functions": "^1.2.3",
"mongoose-autopopulate": "^0.12.3", "mongoose-autopopulate": "^0.12.3",
"node-fetch": "^2.6.1", "node-fetch": "^2.6.1",

View File

@ -24,6 +24,7 @@ export class Server {
server: this.server, server: this.server,
}); });
this.ws.on("connection", Connection); this.ws.on("connection", Connection);
this.ws.on("error", console.error);
} }
async setupSchema() { async setupSchema() {
@ -36,7 +37,7 @@ export class Server {
await (db as Promise<Connection>); await (db as Promise<Connection>);
await this.setupSchema(); await this.setupSchema();
await Config.init(); await Config.init();
console.log("[DB] connected"); console.log("[Database] connected");
if (!this.server.listening) { if (!this.server.listening) {
this.server.listen(this.port); this.server.listen(this.port);
console.log(`[Gateway] online on 0.0.0.0:${this.port}`); console.log(`[Gateway] online on 0.0.0.0:${this.port}`);