fix subscription logging for delete
This commit is contained in:
parent
3c4c6f7925
commit
9a580de6c4
|
@ -87,6 +87,10 @@ public class ResourceModifiedMessage extends BaseResourceMessage implements IRes
|
||||||
mySubscriptionId = theSubscriptionId;
|
mySubscriptionId = theSubscriptionId;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getId() {
|
||||||
|
return myId;
|
||||||
|
}
|
||||||
|
|
||||||
public IIdType getId(FhirContext theCtx) {
|
public IIdType getId(FhirContext theCtx) {
|
||||||
IIdType retVal = null;
|
IIdType retVal = null;
|
||||||
if (myId != null) {
|
if (myId != null) {
|
||||||
|
|
|
@ -84,7 +84,12 @@ public class SubscriptionDebugLogInterceptor {
|
||||||
public void step10_resourceModified(ResourceModifiedMessage theMessage) {
|
public void step10_resourceModified(ResourceModifiedMessage theMessage) {
|
||||||
String value = Long.toString(System.currentTimeMillis());
|
String value = Long.toString(System.currentTimeMillis());
|
||||||
theMessage.setAttribute(SUBSCRIPTION_DEBUG_LOG_INTERCEPTOR_PRECHECK, value);
|
theMessage.setAttribute(SUBSCRIPTION_DEBUG_LOG_INTERCEPTOR_PRECHECK, value);
|
||||||
log(EventCodeEnum.SUBS1, "Resource {} was submitted to the processing pipeline (op={})", theMessage.getPayloadId(), theMessage.getOperationType());
|
String resourceId = theMessage.getPayloadId();
|
||||||
|
if (resourceId == null) {
|
||||||
|
// Delete operations have no payload
|
||||||
|
resourceId = theMessage.getId();
|
||||||
|
}
|
||||||
|
log(EventCodeEnum.SUBS1, "Resource {} was submitted to the processing pipeline (op={})", resourceId, theMessage.getOperationType());
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in New Issue