Skip to content

Commit

Permalink
Improve logging for multi support info
Browse files Browse the repository at this point in the history
  • Loading branch information
SapiensAnatis committed Aug 9, 2023
1 parent 03c7ccc commit 75f5d57
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ IEnumerable<AtgenHelperDetailList> HelperDetailList
{
IEnumerable<PhotonPlayer> teammates = await matchingService.GetTeammates();

logger.LogDebug("Retrieved teammate list: {teammates}", teammates);

IEnumerable<UserSupportList> teammateSupportLists = await this.GetTeammateSupportList(
teammates
);
Expand Down Expand Up @@ -90,7 +92,7 @@ IEnumerable<PhotonPlayer> teammates
{
if (!userDetails.TryGetValue(player.ViewerId, out DbPlayerUserData? userData))
{
logger.LogDebug("No user details returned for player {@player}", player);
logger.LogWarning("No user details returned for player {@player}", player);
continue;
}

Expand All @@ -109,7 +111,7 @@ IEnumerable<PhotonPlayer> teammates
}
catch (Exception e)
{
logger.LogDebug(
logger.LogWarning(
e,
"Failed to populate multiplayer support info for player {@player}",
player
Expand Down
2 changes: 1 addition & 1 deletion DragaliaAPI/Services/Photon/MatchingService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public async Task<IEnumerable<Player>> GetTeammates()

if (game is null)
{
this.logger.LogDebug("Failed to retrieve game for ID {viewerId}", viewerId);
this.logger.LogWarning("Failed to retrieve game for ID {viewerId}", viewerId);
return Enumerable.Empty<Player>();
}

Expand Down

0 comments on commit 75f5d57

Please sign in to comment.