aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2023-01-08 14:11:39 -0600
committerGitHub <noreply@github.com>2023-01-08 14:11:39 -0600
commit25c21ef7f87bfdeac155171371848fe686dc9462 (patch)
tree07c4a5ebb74b345c94e217722310fa782cdf3f10
parent5d243adc315103612f9cc638e85ba157a1a37668 (diff)
parentec6552d9f049ea6858b732ac463eb44a77158dbc (diff)
downloadslskd-25c21ef7f87bfdeac155171371848fe686dc9462.tar.gz
Merge pull request #843 from slskd/relay-logs
Adjust a few Relay logs
-rw-r--r--src/slskd/Relay/RelayClient.cs6
-rw-r--r--src/slskd/Relay/RelayService.cs6
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";