From d3378460c2b3d57dd8cadf9f7cb6062c485237a2 Mon Sep 17 00:00:00 2001 From: jvyden Date: Tue, 18 Jan 2022 21:18:46 -0500 Subject: [PATCH] Always log match data --- ProjectLighthouse/Controllers/MatchController.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ProjectLighthouse/Controllers/MatchController.cs b/ProjectLighthouse/Controllers/MatchController.cs index ba19cb4a..c60c8f77 100644 --- a/ProjectLighthouse/Controllers/MatchController.cs +++ b/ProjectLighthouse/Controllers/MatchController.cs @@ -47,6 +47,8 @@ namespace LBPUnion.ProjectLighthouse.Controllers if (bodyString.Length == 0 || bodyString[0] != '[') return this.BadRequest(); + Logger.Log("Received match data: " + bodyString, LoggerLevelMatch.Instance); + IMatchData? matchData; try { @@ -57,7 +59,6 @@ namespace LBPUnion.ProjectLighthouse.Controllers Logger.Log("Exception while parsing matchData: ", LoggerLevelMatch.Instance); string[] lines = e.ToDetailedException().Split("\n"); foreach (string line in lines) Logger.Log(line, LoggerLevelMatch.Instance); - Logger.Log("Associated matchData: " + bodyString, LoggerLevelMatch.Instance); return this.BadRequest(); } @@ -65,7 +66,6 @@ namespace LBPUnion.ProjectLighthouse.Controllers if (matchData == null) { Logger.Log("Could not parse match data: matchData is null", LoggerLevelMatch.Instance); - Logger.Log("Associated matchData: " + bodyString, LoggerLevelMatch.Instance); return this.BadRequest(); }