From 75f5d57f73024dcb2fa28c43c3612cf87ff96c0f Mon Sep 17 00:00:00 2001 From: Jay Malhotra Date: Wed, 9 Aug 2023 20:00:43 +0100 Subject: [PATCH] Improve logging for multi support info --- .../Features/Dungeon/Record/DungeonRecordHelperService.cs | 6 ++++-- DragaliaAPI/Services/Photon/MatchingService.cs | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/DragaliaAPI/Features/Dungeon/Record/DungeonRecordHelperService.cs b/DragaliaAPI/Features/Dungeon/Record/DungeonRecordHelperService.cs index 9fabbd6de..e9991ab27 100644 --- a/DragaliaAPI/Features/Dungeon/Record/DungeonRecordHelperService.cs +++ b/DragaliaAPI/Features/Dungeon/Record/DungeonRecordHelperService.cs @@ -57,6 +57,8 @@ IEnumerable HelperDetailList { IEnumerable teammates = await matchingService.GetTeammates(); + logger.LogDebug("Retrieved teammate list: {teammates}", teammates); + IEnumerable teammateSupportLists = await this.GetTeammateSupportList( teammates ); @@ -90,7 +92,7 @@ IEnumerable 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; } @@ -109,7 +111,7 @@ IEnumerable teammates } catch (Exception e) { - logger.LogDebug( + logger.LogWarning( e, "Failed to populate multiplayer support info for player {@player}", player diff --git a/DragaliaAPI/Services/Photon/MatchingService.cs b/DragaliaAPI/Services/Photon/MatchingService.cs index d1ad0e960..f8182665c 100644 --- a/DragaliaAPI/Services/Photon/MatchingService.cs +++ b/DragaliaAPI/Services/Photon/MatchingService.cs @@ -103,7 +103,7 @@ public async Task> 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(); }