aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/slskd/Relay/API/Controllers/RelayController.cs4
-rw-r--r--src/slskd/Relay/API/Hubs/RelayHub.cs2
-rw-r--r--src/slskd/Relay/RelayClient.cs4
3 files changed, 5 insertions, 5 deletions
diff --git a/src/slskd/Relay/API/Controllers/RelayController.cs b/src/slskd/Relay/API/Controllers/RelayController.cs
index c11c33bc..d6f4f840 100644
--- a/src/slskd/Relay/API/Controllers/RelayController.cs
+++ b/src/slskd/Relay/API/Controllers/RelayController.cs
@@ -150,7 +150,7 @@ namespace slskd.Relay
// caller is the same caller that received the request, and that the caller knows the shared secret.
if (!Relay.TryValidateFileStreamResponseCredential(token: guid, agentName, filename, credential))
{
- Log.Warning("Failed to authenticate file upload token {Token} from a caller claiming to be agent {Agent}", agentName);
+ Log.Warning("Failed to authenticate file upload token {Token} from a caller claiming to be agent {Agent}", guid, agentName);
return Unauthorized();
}
@@ -220,7 +220,7 @@ namespace slskd.Relay
if (!Relay.TryValidateShareUploadCredential(token: guid, agentName, credential))
{
- Log.Warning("Failed to authenticate share upload from caller claiming to be agent {Agent}");
+ Log.Warning("Failed to authenticate share upload from caller claiming to be agent {Agent} using token {Token}", agentName, guid);
return Unauthorized();
}
diff --git a/src/slskd/Relay/API/Hubs/RelayHub.cs b/src/slskd/Relay/API/Hubs/RelayHub.cs
index 6b091a39..885ba453 100644
--- a/src/slskd/Relay/API/Hubs/RelayHub.cs
+++ b/src/slskd/Relay/API/Hubs/RelayHub.cs
@@ -169,7 +169,7 @@ namespace slskd.Relay
throw new UnauthorizedAccessException();
}
- Log.Warning("Agent {Agent} (connection {ConnectionId}) from {IP} reported upload failure for {Id}: {Message}", id, exception.Message, RemoteIpAddress);
+ Log.Warning("Agent {Agent} (connection {ConnectionId}) from {IP} reported upload failure for {Id}: {Message}", record.Agent, Context.ConnectionId, RemoteIpAddress, id, exception.Message);
Relay.NotifyFileStreamException(id, exception);
}
diff --git a/src/slskd/Relay/RelayClient.cs b/src/slskd/Relay/RelayClient.cs
index 693a7017..406101c6 100644
--- a/src/slskd/Relay/RelayClient.cs
+++ b/src/slskd/Relay/RelayClient.cs
@@ -317,11 +317,11 @@ namespace slskd.Relay
if (!response.IsSuccessStatusCode)
{
- Log.Error("Upload of file {Filename} with ID {Id} failed: {StatusCode}", response.StatusCode);
+ Log.Error("Upload of file {Filename} with ID {Id} failed: {StatusCode}", filename, token, response.StatusCode);
}
else
{
- Log.Information("Upload of file {Filename} with ID {Id} succeeded.", filename);
+ Log.Information("Upload of file {Filename} with ID {Id} succeeded.", filename, token);
}
}
catch (Exception ex)