aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJP Dillingham <jpdillingham@gmail.com>2022-01-13 20:27:13 -0600
committerJP Dillingham <jpdillingham@gmail.com>2022-01-13 20:27:13 -0600
commit2e0ffcce7e1dd97b0bfc7b8c73acd41ffc58c925 (patch)
tree7f36669ebde2ee6e231d1721286eea0051599921 /src
parentbd7951628383afab00ad4480b712ca0d136ca000 (diff)
downloadslskd-2e0ffcce7e1dd97b0bfc7b8c73acd41ffc58c925.tar.gz
log failed and denied downloads
Diffstat (limited to 'src')
-rw-r--r--src/slskd/Application.cs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/slskd/Application.cs b/src/slskd/Application.cs
index ffd76fc5..73818c09 100644
--- a/src/slskd/Application.cs
+++ b/src/slskd/Application.cs
@@ -117,6 +117,8 @@ namespace slskd
Client.Connected += Client_Connected;
Client.LoggedIn += Client_LoggedIn;
Client.StateChanged += Client_StateChanged;
+ Client.DownloadDenied += (e, args) => Log.Information("Download of {Filename} from {Username} was denied: {Message}", args.Filename, args.Username, args.Message);
+ Client.DownloadFailed += (e, args) => Log.Information("Download of {Filename} from {Username} failed", args.Filename, args.Username);
}
private ISoulseekClient Client { get; set; }