🔊 fix log
This commit is contained in:
parent
5acd0ad669
commit
3e6e19e838
2286
package-lock.json
generated
2286
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -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",
|
||||||
|
@ -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}`);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user