Continuation of refactor

This commit is contained in:
2024-12-28 20:40:05 +01:00
parent 6dda79f8b2
commit e1a6f650fb
27 changed files with 158 additions and 236 deletions

View File

@ -7,7 +7,7 @@ import { Server as SocketServer } from 'socket.io'
import config from '#application/config'
import Database from '#application/database'
import { Logger } from '#application/logger'
import Logger, { LoggerType } from '#application/logger'
import { getAppPath } from '#application/storage'
import { TSocket } from '#application/types'
import { HttpRouter } from '#http/router'
@ -23,7 +23,7 @@ export class Server {
private readonly app: Application
private readonly http: HTTPServer
private readonly io: SocketServer
private readonly logger: Logger = new Logger('app')
private readonly logger = Logger.type(LoggerType.APP)
/**
* Creates an instance of GameServer.
@ -50,7 +50,6 @@ export class Server {
*/
public async start() {
// Read log file and print to console for debugging
Logger.watch()
// Connect to database
try {