Skip to content

Commit 993ef4d

Browse files
committed
additional debug logging
1 parent dd8c01e commit 993ef4d

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/Bot/Systems/UserFilter/UserFilterTable.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ public void Add(string condition, ActionType actionType, string reason) =>
2424

2525
public async IAsyncEnumerable<uint> HandleAsync(IGuild guild, IGuildUser user)
2626
{
27+
Debug(LogSource.Service, $"Running user filters on {user} in guild {user.Guild.Id}");
28+
2729
foreach (var entry in Entries)
2830
{
2931
if (!await entry.HandleAsync(guild, user))
@@ -65,6 +67,10 @@ public async Task<bool> HandleAsync(IGuild guild, IGuildUser user)
6567

6668
_ = await ExecuteAsync(guild, user);
6769
}
70+
else
71+
{
72+
Debug(LogSource.Service, $"{user} did not match filter {Id} in guild {user.Guild.Id}");
73+
}
6874

6975
return true;
7076
}

0 commit comments

Comments
 (0)