diff options
| author | JP Dillingham <jpdillingham@gmail.com> | 2023-01-08 13:58:18 -0600 |
|---|---|---|
| committer | JP Dillingham <jpdillingham@gmail.com> | 2023-01-08 13:58:18 -0600 |
| commit | ec6552d9f049ea6858b732ac463eb44a77158dbc (patch) | |
| tree | 07c4a5ebb74b345c94e217722310fa782cdf3f10 | |
| parent | 5d243adc315103612f9cc638e85ba157a1a37668 (diff) | |
| download | slskd-ec6552d9f049ea6858b732ac463eb44a77158dbc.tar.gz | |
adjust a few logs
| -rw-r--r-- | src/slskd/Relay/RelayClient.cs | 6 | ||||
| -rw-r--r-- | src/slskd/Relay/RelayService.cs | 6 |
2 files changed, 3 insertions, 9 deletions
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<Stream>(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"; |
