mirror of
https://github.com/ppy/osu.git
synced 2025-01-07 21:32:57 +08:00
Clean up type display for web requests in logs
This commit is contained in:
parent
d90f29a5ff
commit
a8c3f59845
@ -7,6 +7,7 @@ using System;
|
|||||||
using System.Globalization;
|
using System.Globalization;
|
||||||
using JetBrains.Annotations;
|
using JetBrains.Annotations;
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
|
using osu.Framework.Extensions.TypeExtensions;
|
||||||
using osu.Framework.IO.Network;
|
using osu.Framework.IO.Network;
|
||||||
using osu.Framework.Logging;
|
using osu.Framework.Logging;
|
||||||
using osu.Game.Extensions;
|
using osu.Game.Extensions;
|
||||||
@ -46,7 +47,7 @@ namespace osu.Game.Online.API
|
|||||||
if (WebRequest != null)
|
if (WebRequest != null)
|
||||||
{
|
{
|
||||||
Response = ((OsuJsonWebRequest<T>)WebRequest).ResponseObject;
|
Response = ((OsuJsonWebRequest<T>)WebRequest).ResponseObject;
|
||||||
Logger.Log($"{GetType()} finished with response size of {WebRequest.ResponseStream.Length:#,0} bytes", LoggingTarget.Network);
|
Logger.Log($"{GetType().ReadableName()} finished with response size of {WebRequest.ResponseStream.Length:#,0} bytes", LoggingTarget.Network);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user