-
Notifications
You must be signed in to change notification settings - Fork 11
Closed
Description
There is a misprint in file
#src/Serilog.Sinks.Telegram.Alternative/Sinks/Telegram/Alternative/Output/MessageRenderer.cs:41
It is should be writer, not output
TextTokenRenderer.Render(textToken, writer, options);
Because of that we get:
❗️ HTTP responded in ms"GET""/pur-info"50024.1548
instead of:
❗️ HTTP "GET" "/pur-info" responded 500 in 24.1548 ms
To reproduce:
- Set Telegram Sink Option:
"botApiUrl": "https://api.telegram.org/bot",
"botToken": "xxx",
"chatId": "-xxx",
"includeStackTrace": false,
"outputTemplate": "{Level:e} {Message} {NewLine}{NewLine}edsofa.ai: on {Timestamp:HH:mm:ss} RequestId:{RequestId} {NewLine}{Exception:f}" - Turn on http logging in program.cs
app.UseHttpLogging();
app.UseSerilogRequestLogging(); - Log any http request
w3lld0ne
Metadata
Metadata
Assignees
Labels
No labels