mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-07-10 07:11:27 +00:00
Add more logging to resources and matching
Change uploading to use ReadAllAsync instead of readFromPipeReader
This commit is contained in:
parent
f03d1d7c17
commit
ddee367586
2 changed files with 11 additions and 26 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue