From 643efbfad73a93fca2f533348e9790a7dd551de1 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Sun, 22 Mar 2020 14:13:05 -0700 Subject: [PATCH] ircd::m::push: Log a debug error for unknown condition kinds. --- matrix/push.cc | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/matrix/push.cc b/matrix/push.cc index 7aa3796f7..7bee6c5a6 100644 --- a/matrix/push.cc +++ b/matrix/push.cc @@ -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; }