mirror of
https://github.com/ppy/osu.git
synced 2025-02-15 16:22:55 +08:00
Merge pull request #15877 from peppy/log-response-sizes
Log output API request response sizes
This commit is contained in:
commit
857e559f87
@ -38,7 +38,12 @@ namespace osu.Game.Online.API
|
||||
protected override void PostProcess()
|
||||
{
|
||||
base.PostProcess();
|
||||
Response = ((OsuJsonWebRequest<T>)WebRequest)?.ResponseObject;
|
||||
|
||||
if (WebRequest != null)
|
||||
{
|
||||
Response = ((OsuJsonWebRequest<T>)WebRequest).ResponseObject;
|
||||
Logger.Log($"{GetType()} finished with response size of {WebRequest.ResponseStream.Length:#,0} bytes");
|
||||
}
|
||||
}
|
||||
|
||||
internal void TriggerSuccess(T result)
|
||||
|
Loading…
Reference in New Issue
Block a user