From 38c821d0eb5f22c30ca9be8f24e452f5ce0b83ca Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Sat, 25 Apr 2026 18:53:51 -0500 Subject: don't log share upload success on failure --- src/slskd/Relay/RelayClient.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/slskd/Relay/RelayClient.cs') diff --git a/src/slskd/Relay/RelayClient.cs b/src/slskd/Relay/RelayClient.cs index 6fb2f360..de6edcf7 100644 --- a/src/slskd/Relay/RelayClient.cs +++ b/src/slskd/Relay/RelayClient.cs @@ -532,6 +532,8 @@ namespace slskd.Relay Log.Information("Uploading shares..."); await UploadSharesAsync(); + + Log.Information("Shares uploaded. Ready to relay files."); } catch (Exception ex) { @@ -542,8 +544,6 @@ namespace slskd.Relay await StopAsync(); _ = StartAsync(); } - - Log.Information("Shares uploaded. Ready to relay files."); } private Task HubConnection_Reconnecting(Exception arg) -- cgit v1.2.3 From 3b9d14bf6f128d771149f6589f345967aea5dc4d Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Sat, 25 Apr 2026 18:54:10 -0500 Subject: don't try to catch typed exceptions from hub invocations --- src/slskd/Relay/RelayClient.cs | 5 ----- 1 file changed, 5 deletions(-) (limited to 'src/slskd/Relay/RelayClient.cs') diff --git a/src/slskd/Relay/RelayClient.cs b/src/slskd/Relay/RelayClient.cs index de6edcf7..9aec7b00 100644 --- a/src/slskd/Relay/RelayClient.cs +++ b/src/slskd/Relay/RelayClient.cs @@ -362,11 +362,6 @@ namespace slskd.Relay LoggedInTaskCompletionSource.TrySetResult(); } - catch (UnauthorizedAccessException) - { - await HubConnection.StopAsync(); - Log.Error("Relay controller authentication failed. Check configuration."); - } catch (Exception ex) { Log.Error(ex, "Failed to handle authentication challenge: {Message}", ex.Message); -- cgit v1.2.3