|
|
|
@ -487,22 +487,26 @@ public class ActorSystemContext { |
|
|
|
} |
|
|
|
|
|
|
|
public void persistDebugInput(TenantId tenantId, EntityId entityId, TbMsg tbMsg, String relationType) { |
|
|
|
persistDebugAsync(tenantId, entityId, "IN", tbMsg, relationType, null); |
|
|
|
persistDebugAsync(tenantId, entityId, "IN", tbMsg, relationType, null, null); |
|
|
|
} |
|
|
|
|
|
|
|
public void persistDebugInput(TenantId tenantId, EntityId entityId, TbMsg tbMsg, String relationType, Throwable error) { |
|
|
|
persistDebugAsync(tenantId, entityId, "IN", tbMsg, relationType, error); |
|
|
|
persistDebugAsync(tenantId, entityId, "IN", tbMsg, relationType, error, null); |
|
|
|
} |
|
|
|
|
|
|
|
public void persistDebugOutput(TenantId tenantId, EntityId entityId, TbMsg tbMsg, String relationType, Throwable error, String failureMessage) { |
|
|
|
persistDebugAsync(tenantId, entityId, "OUT", tbMsg, relationType, error, failureMessage); |
|
|
|
} |
|
|
|
|
|
|
|
public void persistDebugOutput(TenantId tenantId, EntityId entityId, TbMsg tbMsg, String relationType, Throwable error) { |
|
|
|
persistDebugAsync(tenantId, entityId, "OUT", tbMsg, relationType, error); |
|
|
|
persistDebugAsync(tenantId, entityId, "OUT", tbMsg, relationType, error, null); |
|
|
|
} |
|
|
|
|
|
|
|
public void persistDebugOutput(TenantId tenantId, EntityId entityId, TbMsg tbMsg, String relationType) { |
|
|
|
persistDebugAsync(tenantId, entityId, "OUT", tbMsg, relationType, null); |
|
|
|
persistDebugAsync(tenantId, entityId, "OUT", tbMsg, relationType, null, null); |
|
|
|
} |
|
|
|
|
|
|
|
private void persistDebugAsync(TenantId tenantId, EntityId entityId, String type, TbMsg tbMsg, String relationType, Throwable error) { |
|
|
|
private void persistDebugAsync(TenantId tenantId, EntityId entityId, String type, TbMsg tbMsg, String relationType, Throwable error, String failureMessage) { |
|
|
|
if (checkLimits(tenantId, tbMsg, error)) { |
|
|
|
try { |
|
|
|
Event event = new Event(); |
|
|
|
@ -526,6 +530,8 @@ public class ActorSystemContext { |
|
|
|
|
|
|
|
if (error != null) { |
|
|
|
node = node.put("error", toString(error)); |
|
|
|
} else if (failureMessage != null) { |
|
|
|
node = node.put("error", failureMessage); |
|
|
|
} |
|
|
|
|
|
|
|
event.setBody(node); |
|
|
|
|