mirror of
https://github.com/matrix-construct/construct
synced 2024-12-26 15:33:54 +01:00
ircd:Ⓜ️:push: Log a debug error for unknown condition kinds.
This commit is contained in:
parent
6774ac742a
commit
643efbfad7
1 changed files with 13 additions and 0 deletions
|
@ -396,6 +396,19 @@ ircd::m::push::unknown_condition_kind(const event &event,
|
|||
const cond &cond,
|
||||
const match::opts &opts)
|
||||
{
|
||||
const string_view &kind
|
||||
{
|
||||
json::get<"kind"_>(cond)
|
||||
};
|
||||
|
||||
log::derror
|
||||
{
|
||||
log, "Push condition for %s by %s :unknown kind '%s' rule always fails...",
|
||||
string_view{event.event_id},
|
||||
string_view{opts.user_id},
|
||||
kind,
|
||||
};
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue