From 2e0ffcce7e1dd97b0bfc7b8c73acd41ffc58c925 Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Thu, 13 Jan 2022 20:27:13 -0600 Subject: log failed and denied downloads --- src/slskd/Application.cs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') 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; } -- cgit v1.2.3