From ec6552d9f049ea6858b732ac463eb44a77158dbc Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Sun, 8 Jan 2023 13:58:18 -0600 Subject: adjust a few logs --- src/slskd/Relay/RelayClient.cs | 6 +++--- src/slskd/Relay/RelayService.cs | 6 ------ 2 files changed, 3 insertions(+), 9 deletions(-) (limited to 'src') diff --git a/src/slskd/Relay/RelayClient.cs b/src/slskd/Relay/RelayClient.cs index 5865c6f6..4809df62 100644 --- a/src/slskd/Relay/RelayClient.cs +++ b/src/slskd/Relay/RelayClient.cs @@ -352,16 +352,16 @@ namespace slskd.Relay { 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 1dda50c2..2cf09f8d 100644 --- a/src/slskd/Relay/RelayService.cs +++ b/src/slskd/Relay/RelayService.cs @@ -533,8 +533,6 @@ namespace slskd.Relay 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 @@ namespace slskd.Relay { 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 @@ namespace slskd.Relay { 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"; -- cgit v1.2.3