Add more logging to resources and matching

Change uploading to use ReadAllAsync instead of readFromPipeReader
This commit is contained in:
Slendy 2023-04-20 11:00:55 -05:00
parent f03d1d7c17
commit ddee367586
No known key found for this signature in database
GPG key ID: 7288D68361B91428
2 changed files with 11 additions and 26 deletions

View file

@ -59,7 +59,7 @@ public class MatchController : ControllerBase
}
catch(Exception e)
{
Logger.Error("Exception while parsing matchData: ", LogArea.Match);
Logger.Error($"Exception while parsing matchData: body='{bodyString}'", LogArea.Match);
Logger.Error(e.ToDetailedException(), LogArea.Match);
return this.BadRequest();
@ -67,7 +67,7 @@ public class MatchController : ControllerBase
if (matchData == null)
{
Logger.Error($"Could not parse match data: {nameof(matchData)} is null", LogArea.Match);
Logger.Error($"Could not parse match data: {nameof(matchData)} is null, body='{bodyString}'", LogArea.Match);
return this.BadRequest();
}