diff options
| author | JP Dillingham <jp@dillingham.me> | 2024-10-20 18:21:20 -0500 |
|---|---|---|
| committer | JP Dillingham <jp@dillingham.me> | 2024-10-20 18:21:20 -0500 |
| commit | 88e9ca275941f2a14733de6b427e1f228142d9e3 (patch) | |
| tree | 278373b9a9c2223d41ebd25aec6c3b1741b73ffd /src | |
| parent | ba6257cc9ddb2fdd0f3585317f1a1708b8d90ffd (diff) | |
| download | slskd-88e9ca275941f2a14733de6b427e1f228142d9e3.tar.gz | |
fix logging
Diffstat (limited to 'src')
| -rw-r--r-- | src/slskd/Events/EventBus.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/slskd/Events/EventBus.cs b/src/slskd/Events/EventBus.cs index 46e55565..16b7c9e1 100644 --- a/src/slskd/Events/EventBus.cs +++ b/src/slskd/Events/EventBus.cs @@ -83,7 +83,7 @@ public class EventBus // if something throws it will be logged and the consumer can figure it out if (Subscriptions.TryGetValue(typeof(T), out var subscribers)) { - Log.Debug("{Count} subscriber(s) for {Type}: {Names}", subscribers.Count, typeof(T), string.Join(", ", subscribers.Keys)); + Log.Debug("{Count} subscriber(s) for {Type}: {Names}", subscribers.Count, data.Type, string.Join(", ", subscribers.Keys)); // we don't care about any of these tasks; contractually we are only obligated to invoke them _ = Task.WhenAll(subscribers.Select(subscriber => @@ -98,7 +98,7 @@ public class EventBus // broadcast the event to catch-all subscribers of type Event; listening for all types if (Subscriptions.TryGetValue(typeof(Event), out subscribers)) { - Log.Debug("{Count} catch-all subscriber(s) for {Type}: {Names}", subscribers.Count, typeof(Event), string.Join(", ", subscribers.Keys)); + Log.Debug("{Count} catch-all subscriber(s): {Names}", subscribers.Count, string.Join(", ", subscribers.Keys)); // we don't care about any of these tasks; contractually we are only obligated to invoke them _ = Task.WhenAll(subscribers.Select(subscriber => |
