Add more logging to MatchController

This commit is contained in:
jvyden 2021-11-14 17:44:00 -05:00
commit 6404e1b7a2
No known key found for this signature in database
GPG key ID: 18BCF2BE0262B278

View file

@ -60,7 +60,14 @@ namespace LBPUnion.ProjectLighthouse.Controllers
return this.BadRequest();
}
if (matchData == null) return this.BadRequest();
if (matchData == null)
{
Logger.Log("Could not parse match data: matchData is null", LoggerLevelMatch.Instance);
Logger.Log("Data: " + bodyString, LoggerLevelMatch.Instance);
return this.BadRequest();
}
Logger.Log($"Parsed match from {user.Username} (type: {matchData.GetType()})", LoggerLevelMatch.Instance);
#endregion