log(subscriptionId, heap.getUri(), reason.name(), extension);
}
private void log(String subscriptionId, String heapUri, String closeReason, LogExtension logExtension) {
Object[] fieldsToLog = logExtension != null ? logExtension.getFieldsToLog() : null;
ConnectedObjectLogEvent connectedObjectLogEvent = new ConnectedObjectLogEvent(
"PUSH_SUBSCRIPTION-LOG",
new Date(),
subscriptionId,
heapUri,
closeReason