diff --git a/src/slskd/Relay/RelayClient.cs b/src/slskd/Relay/RelayClient.cs index 5865c6f6a..4809df621 100644 --- a/src/slskd/Relay/RelayClient.cs +++ b/src/slskd/Relay/RelayClient.cs @@ -352,16 +352,16 @@ private async Task HandleAuthenticationChallenge(string challengeToken) { try { - Log.Debug("Relay controller sent an authentication challenge"); + Log.Information("Relay controller sent an authentication challenge"); var options = OptionsMonitor.CurrentValue; var agent = options.InstanceName; var response = ComputeCredential(challengeToken); - Log.Debug("Logging in..."); + Log.Information("Logging in..."); await HubConnection.InvokeAsync(nameof(RelayHub.Login), agent, response); - Log.Debug("Login succeeded."); + Log.Information("Login succeeded."); LoggedInTaskCompletionSource?.TrySetResult(); } catch (UnauthorizedAccessException) diff --git a/src/slskd/Relay/RelayService.cs b/src/slskd/Relay/RelayService.cs index 1dda50c27..2cf09f8dc 100644 --- a/src/slskd/Relay/RelayService.cs +++ b/src/slskd/Relay/RelayService.cs @@ -533,8 +533,6 @@ public async Task GetFileStreamAsync(string agentName, string filename, var key = new WaitKey(nameof(GetFileStreamAsync), agentName, id); var wait = Waiter.Wait(key, timeout, cancellationToken); - Log.Information("Created wait {Key}", key); - await RelayHub.Clients.Client(record.ConnectionId).RequestFileUpload(filename, startOffset, id); Log.Information("Requested file {Filename} from Agent {Agent} with ID {Id}. Waiting for incoming connection.", filename, agentName, id); @@ -563,8 +561,6 @@ public void HandleFileInfoResponse(string agentName, Guid id, (bool Exists, long { var key = new WaitKey(nameof(GetFileInfoAsync), agentName, id); - Log.Information("Handling wait {Key}", key); - if (!Waiter.IsWaitingFor(key)) { var msg = $"A file info response from Agent {agentName} matching Id {id} was not expected"; @@ -590,8 +586,6 @@ public async Task HandleFileStreamResponse(string agentName, Guid id, Stream res { var streamKey = new WaitKey(nameof(GetFileStreamAsync), agentName, id); - Log.Information("Handling wait {Key}", streamKey); - if (!Waiter.IsWaitingFor(streamKey)) { var msg = $"A file stream response matching Id {id} is not expected";