mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-08-02 18:18:39 +00:00
parent
12a4618c6f
commit
04cdca0d26
1 changed files with 3 additions and 0 deletions
|
@ -102,11 +102,14 @@ namespace LBPUnion.ProjectLighthouse
|
|||
LoggerLevelHttp.Instance
|
||||
);
|
||||
|
||||
#if DEBUG
|
||||
// Log post body
|
||||
if (context.Request.Method == "POST")
|
||||
{
|
||||
context.Request.Body.Position = 0;
|
||||
Logger.Log(await new StreamReader(context.Request.Body).ReadToEndAsync(), LoggerLevelHttp.Instance);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue