lythx / trakman

Trackmania Forever server controller written in TypeScript
https://trakman.ptrk.eu
MIT License
24 stars 4 forks source link

Controller not start when DISCORD_LOG_LEVEL is 3 #240

Closed xadll closed 7 months ago

xadll commented 7 months ago

Wiki page says that allowed numbers range is from 1 to 5.

When i set DISCORD_LOG_LEVEL within docker-compose.yaml to DISCORD_LOG_LEVEL: 3, controller wont start.

Logs:

TypeError: Cannot read properties of undefined (reading 'replace')
    at Object.strip (file:///app/server/trakman/src/Utils.ts:78:16)
    at Function.writeLog (file:///app/server/trakman/src/Logger.ts:205:61)
    at Function.fatal (file:///app/server/trakman/src/Logger.ts:120:5)
TypeError: Cannot read properties of undefined (reading 'replace')
    at Object.strip (file:///app/server/trakman/src/Utils.ts:78:16)
    at Function.writeLog (file:///app/server/trakman/src/Logger.ts:205:61)
wsrvn commented 7 months ago

this is due to the controller not having the information about the server name/login on startup (as the gameservice starts later), will be fixed in the next version, for now set the log to 2