mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-09-23 01:39:03 +00:00
Log when a room is found for a user
This commit is contained in:
parent
be7200aaf0
commit
bd2aff74af
1 changed files with 7 additions and 1 deletions
|
@ -26,7 +26,11 @@ namespace LBPUnion.ProjectLighthouse.Helpers
|
||||||
|
|
||||||
public static FindBestRoomResponse? FindBestRoom(User? user, GameVersion roomVersion, string? location)
|
public static FindBestRoomResponse? FindBestRoom(User? user, GameVersion roomVersion, string? location)
|
||||||
{
|
{
|
||||||
if (roomVersion == GameVersion.LittleBigPlanet1 || roomVersion == GameVersion.LittleBigPlanetPSP) return null;
|
if (roomVersion == GameVersion.LittleBigPlanet1 || roomVersion == GameVersion.LittleBigPlanetPSP)
|
||||||
|
{
|
||||||
|
Logger.Log($"Returning null for FindBestRoom, game ({roomVersion}) does not support dive in", LoggerLevelMatch.Instance);
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
bool anyRoomsLookingForPlayers;
|
bool anyRoomsLookingForPlayers;
|
||||||
List<Room> rooms;
|
List<Room> rooms;
|
||||||
|
@ -108,6 +112,8 @@ namespace LBPUnion.ProjectLighthouse.Helpers
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Logger.Log($"Found a room (id: {room.RoomId}) for user {user?.Username ?? "null"} (id: {user?.UserId ?? -1})", LoggerLevelMatch.Instance);
|
||||||
|
|
||||||
return response;
|
return response;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue