1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-06 23:07:44 +08:00
osu-lazer/osu.Game/Online
Dean Herbert f500d5ade6 Simplify error output when hub cannot connect
Full call stack is useless in these cases.

Before:

```csharp

[network] 2022-07-07 16:05:31 [verbose]: OnlineMetadataClient connection error: System.Net.Http.HttpRequestException: Response status code does not indicate success: 403 (Forbidden).
[network] 2022-07-07 16:05:31 [verbose]: at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
[network] 2022-07-07 16:05:31 [verbose]: at Microsoft.AspNetCore.Http.Connections.Client.HttpConnection.NegotiateAsync(Uri url, HttpClient httpClient, ILogger logger, CancellationToken cancellationToken)
[network] 2022-07-07 16:05:31 [verbose]: at Microsoft.AspNetCore.Http.Connections.Client.HttpConnection.GetNegotiationResponseAsync(Uri uri, CancellationToken cancellationToken)
[network] 2022-07-07 16:05:31 [verbose]: at Microsoft.AspNetCore.Http.Connections.Client.HttpConnection.SelectAndStartTransport(TransferFormat transferFormat, CancellationToken cancellationToken)
[network] 2022-07-07 16:05:31 [verbose]: at Microsoft.AspNetCore.Http.Connections.Client.HttpConnection.StartAsyncCore(TransferFormat transferFormat, CancellationToken cancellationToken)
[network] 2022-07-07 16:05:31 [verbose]: at Microsoft.AspNetCore.Http.Connections.Client.HttpConnection.StartAsync(TransferFormat transferFormat, CancellationToken cancellationToken)
[network] 2022-07-07 16:05:31 [verbose]: at Microsoft.AspNetCore.Http.Connections.Client.HttpConnectionFactory.ConnectAsync(EndPoint endPoint, CancellationToken cancellationToken)
[network] 2022-07-07 16:05:31 [verbose]: at Microsoft.AspNetCore.Http.Connections.Client.HttpConnectionFactory.ConnectAsync(EndPoint endPoint, CancellationToken cancellationToken)
[network] 2022-07-07 16:05:31 [verbose]: at Microsoft.AspNetCore.SignalR.Client.HubConnection.StartAsyncCore(CancellationToken cancellationToken)
[network] 2022-07-07 16:05:31 [verbose]: at Microsoft.AspNetCore.SignalR.Client.HubConnection.StartAsyncInner(CancellationToken cancellationToken)
[network] 2022-07-07 16:05:31 [verbose]: at Microsoft.AspNetCore.SignalR.Client.HubConnection.StartAsync(CancellationToken cancellationToken)
[network] 2022-07-07 16:05:31 [verbose]: at osu.Game.Online.HubClientConnector.connect() in /Users/dean/Projects/osu/osu.Game/Online/HubClientConnector.cs:line 119

```

After:

```csharp

[network] 2022-07-07 16:06:59 [verbose]: OnlineMetadataClient connecting...
[network] 2022-07-07 16:06:59 [verbose]: OnlineMetadataClient connect attempt failed: Response status code does not indicate success: 403 (Forbidden).

```
2022-07-08 01:06:40 +09:00
..
API Move the null check in the outside. 2022-06-30 23:29:49 +08:00
Chat Add logging around current channel changes and join requests 2022-06-28 14:00:30 +09:00
Leaderboards Fix personal best score showing delete option on context menu 2022-07-03 10:23:17 -07:00
Metadata Save last processed id to config for now 2022-07-05 21:42:35 +09:00
Multiplayer Isolate client's Room from TestMultiplayerClient 2022-07-01 19:23:25 +09:00
Placeholders Automated #nullable processing 2022-06-17 16:37:17 +09:00
Rooms Ensure PlaylistItem beatmap is not null 2022-06-30 14:24:49 +09:00
Solo Send beatmap has to server on solo score request 2022-07-02 12:16:17 +09:00
Spectator Use debug.assert for better readable. 2022-07-03 19:27:56 +08:00
BeatmapDownloadTracker.cs Update parameter discards 2022-06-24 21:26:19 +09:00
DevelopmentEndpointConfiguration.cs Add missing endpoint URLs 2022-07-05 22:15:52 +09:00
DownloadState.cs Automated #nullable processing 2022-06-17 16:37:17 +09:00
DownloadTracker.cs Automated #nullable processing 2022-06-17 16:37:17 +09:00
EndpointConfiguration.cs Add OnlineMetadataClient 2022-07-05 21:32:00 +09:00
HubClientConnector.cs Simplify error output when hub cannot connect 2022-07-08 01:06:40 +09:00
IHubClientConnector.cs Automated #nullable processing 2022-06-17 16:37:17 +09:00
ILinkHandler.cs Add and use ILinkHandler interface 2022-06-20 20:04:21 +02:00
OnlineViewContainer.cs Automated #nullable processing 2022-06-17 16:37:17 +09:00
PollingComponent.cs Automated #nullable processing 2022-06-17 16:37:17 +09:00
ProductionEndpointConfiguration.cs Add missing endpoint URLs 2022-07-05 22:15:52 +09:00
ScoreDownloadTracker.cs Update parameter discards 2022-06-24 21:26:19 +09:00
SignalRDerivedTypeWorkaroundJsonConverter.cs Automated #nullable processing 2022-06-17 16:37:17 +09:00
SignalRUnionWorkaroundResolver.cs Automated #nullable processing 2022-06-17 16:37:17 +09:00
SignalRWorkaroundTypes.cs Automated #nullable processing 2022-06-17 16:37:17 +09:00