Log rule execution

pull/209/head
M66B 2 years ago
parent 427518c1ed
commit 42bcec8bff

@ -466,7 +466,7 @@ public class EntityRule {
private boolean _execute(Context context, EntityMessage message) throws JSONException, IllegalArgumentException { private boolean _execute(Context context, EntityMessage message) throws JSONException, IllegalArgumentException {
JSONObject jaction = new JSONObject(action); JSONObject jaction = new JSONObject(action);
int type = jaction.getInt("type"); int type = jaction.getInt("type");
Log.i("Executing rule=" + type + ":" + name + " message=" + message.id); EntityLog.log(context, EntityLog.Type.Rules, message, "Executing rule=" + type + ":" + name);
switch (type) { switch (type) {
case TYPE_NOOP: case TYPE_NOOP:

Loading…
Cancel
Save