1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-30 05:09:42 +08:00
osu-lazer/osu.Game
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
..
Audio Automated #nullable processing 2022-06-17 16:37:17 +09:00
Beatmaps Remove unused using statement 2022-07-07 17:59:55 +09:00
Collections Update parameter discards 2022-06-24 21:26:19 +09:00
Configuration Save last processed id to config for now 2022-07-05 21:42:35 +09:00
Database Fix transaction not being disposed 2022-07-07 18:15:38 +09:00
Extensions Move the null check in the outside. 2022-06-30 23:29:49 +08:00
Graphics Fix BeatSyncedContainer unintentionally blocking on beatmap load 2022-07-06 14:58:06 +09:00
Input Update parameter discards 2022-06-24 21:26:19 +09:00
IO Avoid usage of finally in potentially hot path 2022-07-06 19:55:51 +09:00
IPC Handle osu:// scheme links via IPC in desktop game 2022-06-20 21:26:22 +02:00
Localisation Remove the nullable disable annotation in the localisation. 2022-06-28 20:59:57 +08:00
Migrations Remove the nullable disable annotations. 2022-06-28 20:59:03 +08:00
Models Guard again potential nulls in RealmNamedFileUsage 2022-06-30 15:40:57 +09:00
Online Simplify error output when hub cannot connect 2022-07-08 01:06:40 +09:00
Overlays Merge pull request #19026 from peppy/async-track-operations 2022-07-07 19:45:03 +09:00
Performance Automated #nullable processing 2022-06-17 16:37:17 +09:00
Properties Automated #nullable processing 2022-06-17 16:37:17 +09:00
Replays Remove the nullable disable annotation in the Replays namespace. 2022-07-02 13:03:01 +08:00
Rulesets Remove the nullable disable annotation in the Ruleset.Filter namespace. 2022-07-03 21:00:54 +08:00
Scoring Use debug.assert for better readable. 2022-07-03 19:27:56 +08:00
Screens Fix song select placeholder not showing convert hint for custom rulesets 2022-07-07 14:46:51 +09:00
Skinning Fix potential null being sent to extension method which doesn't support it 2022-07-02 12:50:28 +09:00
Storyboards Update parameter discards 2022-06-24 21:26:19 +09:00
Tests Use fire-and-forget async operations on global track 2022-07-07 17:15:45 +09:00
Updater Automated #nullable processing 2022-06-17 16:37:17 +09:00
Users Automated #nullable processing 2022-06-17 16:37:17 +09:00
Utils Remove the nullable disable annotate. 2022-06-30 23:05:09 +08:00
.editorconfig Add localisation length hinting 2022-04-28 19:26:28 +09:00
osu!.res
osu.Game.csproj Update framework 2022-07-07 17:13:16 +09:00
OsuGame.cs Update language initialisation in line with framework LocalisationManager changes 2022-06-28 18:19:48 +09:00
OsuGameBase_Importing.cs Automated #nullable processing 2022-06-17 16:37:17 +09:00
OsuGameBase.cs Merge branch 'realm-nested-writes' into metadata-client 2022-07-07 17:37:06 +09:00
PerformFromMenuRunner.cs Automated #nullable processing 2022-06-17 16:37:17 +09:00