             plugin_id: plugin_id,
             stop_id: stop_id,
             }}
-        {:error, error} -> {:error, error}
+        {:error, error} ->
+          Logger.error("Error starting rule #{inspect uuid}: #{inspect error}", rule_uuid: uuid, error: error)
+          {:error, error}
       end
     else
-      [] -> {:error, :not_found}
+      [] ->
+        Logger.error("Error, trigger for rule #{inspect uuid} not found", rule_uuid: uuid)
+        {:error, :not_found}
       {:error, :no_trigger} ->
         Logger.info("Starting rule #{inspect uuid}, with external trigger.", rule_uuid: uuid)
           {:ok, %{

      {:error, error} ->
        Logger.error("Error starting trigger: #{inspect error}.", rule: rule.rule)
        {:stop, :cant_start_trigger}
    end
  end
  def init(rule) do

            plugin_id: nil,
            stop_id: nil
          }}
      error ->
        Logger.error("Error starting rule #{inspect uuid}: #{inspect error}", rule_uuid: uuid, error: error)
        error
    end
  end

