mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-06 22:07:55 +00:00
Slightly change HTTP log format
This commit is contained in:
parent
f2c18dff41
commit
ca4ffdb803
1 changed files with 4 additions and 4 deletions
|
|
@ -66,11 +66,11 @@ namespace PluralKit.Bot
|
|||
|
||||
var routePath = NormalizeRoutePath(response.RequestMessage.RequestUri.LocalPath.Replace("/api/v7", ""));
|
||||
var route = $"{response.RequestMessage.Method} {routePath}";
|
||||
LogContext.PushProperty("DiscordRoute", route);
|
||||
|
||||
LogContext.PushProperty("RequestUrlRoute", route);
|
||||
|
||||
_logger.Information(
|
||||
"{RequestMethod} {RequestUrl} -> {ResponseStatusCode} {ResponseStatusString} (in {RequestDurationMs:F1} ms)",
|
||||
response.RequestMessage.Method.Method,
|
||||
"HTTP {RequestMethod} {RequestUrl} -> {ResponseStatusCode} {ResponseStatusString} (in {RequestDurationMs:F1} ms)",
|
||||
response.RequestMessage.Method,
|
||||
response.RequestMessage.RequestUri,
|
||||
(int) response.StatusCode,
|
||||
response.ReasonPhrase,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue