     trigger_data = try do
       Serverboards.RulesV2.Rule.trigger_type(uuid)
     catch
-      :exit, _ -> # not existing
+      :exit, e -> # not existing
+        Logger.error("Exit when running rule: #{inspect e}")
         {:error, :not_enabled}
     end
 


  def filter_query(uuid, vals, peer) do
    alias Serverboards.Utils

    # Logger.debug("Get rule #{inspect uuid}")
    rule = Serverboards.RulesV2.Rules.get(uuid)

      nil -> true
      origins ->
        String.split(origins, "\n") |> Enum.any?(fn origin ->
          # Logger.debug("Check origin #{inspect origin} ==? #{inspect my_origin}")
          (origin != "") and (origin == my_origin)
        end)
    end

