mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-08-02 18:18:39 +00:00
Always log match data
This commit is contained in:
parent
b9ee24df69
commit
d3378460c2
1 changed files with 2 additions and 2 deletions
|
@ -47,6 +47,8 @@ namespace LBPUnion.ProjectLighthouse.Controllers
|
||||||
|
|
||||||
if (bodyString.Length == 0 || bodyString[0] != '[') return this.BadRequest();
|
if (bodyString.Length == 0 || bodyString[0] != '[') return this.BadRequest();
|
||||||
|
|
||||||
|
Logger.Log("Received match data: " + bodyString, LoggerLevelMatch.Instance);
|
||||||
|
|
||||||
IMatchData? matchData;
|
IMatchData? matchData;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
@ -57,7 +59,6 @@ namespace LBPUnion.ProjectLighthouse.Controllers
|
||||||
Logger.Log("Exception while parsing matchData: ", LoggerLevelMatch.Instance);
|
Logger.Log("Exception while parsing matchData: ", LoggerLevelMatch.Instance);
|
||||||
string[] lines = e.ToDetailedException().Split("\n");
|
string[] lines = e.ToDetailedException().Split("\n");
|
||||||
foreach (string line in lines) Logger.Log(line, LoggerLevelMatch.Instance);
|
foreach (string line in lines) Logger.Log(line, LoggerLevelMatch.Instance);
|
||||||
Logger.Log("Associated matchData: " + bodyString, LoggerLevelMatch.Instance);
|
|
||||||
|
|
||||||
return this.BadRequest();
|
return this.BadRequest();
|
||||||
}
|
}
|
||||||
|
@ -65,7 +66,6 @@ namespace LBPUnion.ProjectLighthouse.Controllers
|
||||||
if (matchData == null)
|
if (matchData == null)
|
||||||
{
|
{
|
||||||
Logger.Log("Could not parse match data: matchData is null", LoggerLevelMatch.Instance);
|
Logger.Log("Could not parse match data: matchData is null", LoggerLevelMatch.Instance);
|
||||||
Logger.Log("Associated matchData: " + bodyString, LoggerLevelMatch.Instance);
|
|
||||||
return this.BadRequest();
|
return this.BadRequest();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue