Continuation of refactor
This commit is contained in:
@ -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 {
|
||||
|
Reference in New Issue
Block a user