mirror of
https://github.com/ultrasn0w/app.git
synced 2025-12-16 03:09:53 +01:00
Images
This commit is contained in:
@@ -6,6 +6,11 @@ internal static class LogBoy
|
||||
{
|
||||
private static readonly StringBuilder Log = new();
|
||||
|
||||
internal static async Task LogResponse(HttpResponseMessage message)
|
||||
{
|
||||
AddToLog(message.RequestMessage?.RequestUri + " " + message.StatusCode + " " + await message.Content.ReadAsStringAsync());
|
||||
}
|
||||
|
||||
internal static void AddToLog(string text)
|
||||
{
|
||||
Log.Append('[' + DateTime.Now.ToShortTimeString() + "] ");
|
||||
|
||||
Reference in New Issue
Block a user