Move logging

This commit is contained in:
Dev 2023-05-30 13:58:02 +01:00
parent 22279a7353
commit bb9d3739c4

View File

@ -66,8 +66,6 @@ export class GameController
public gameStart(_url: string, _info: IEmptyRequestData, sessionID: string, startTimeStampMS: number): void
{
this.logger.debug(`Started game with sessionId: ${sessionID}`);
// Store start time in app context
this.applicationContext.addValue(ContextVariableType.CLIENT_START_TIMESTAMP, startTimeStampMS);
@ -84,6 +82,8 @@ export class GameController
const fullProfile = this.profileHelper.getFullProfile(sessionID);
const pmcProfile = fullProfile.characters.pmc;
this.logger.debug(`Started game with sessionId: ${sessionID}`);
if (pmcProfile.Health)
{
this.updateProfileHealthValues(pmcProfile);