Add joined match id to log

This commit is contained in:
Layla 2020-09-05 17:30:54 -04:00
parent 5cbc0100d8
commit ab3f05f013
No known key found for this signature in database
GPG Key ID: A494D9357BA1BE31

View File

@ -133,7 +133,7 @@ func (m *Match) MatchJoin(ctx context.Context, logger runtime.Logger, db *sql.DB
}
mState.players[precense.GetUserId()] = *player
logger.Info(fmt.Sprintf("%s joined the match!", player.Presence.GetUsername()))
logger.Info(fmt.Sprintf("%s joined match '%s'!", player.Presence.GetUsername(), ctx.Value(runtime.RUNTIME_CTX_MATCH_ID).(string)))
// Get intial tile data around player
if regionData, err := mState.worldMap.GetJSONRegionAround(player.X, player.Y, maxRenderDistance); err != nil {