fix subscription logging for delete

This commit is contained in:
Ken Stevens 2019-10-06 15:10:19 -04:00
parent 3c4c6f7925
commit 9a580de6c4
2 changed files with 10 additions and 1 deletions

View File

@ -87,6 +87,10 @@ public class ResourceModifiedMessage extends BaseResourceMessage implements IRes
mySubscriptionId = theSubscriptionId;
}
public String getId() {
return myId;
}
public IIdType getId(FhirContext theCtx) {
IIdType retVal = null;
if (myId != null) {

View File

@ -84,7 +84,12 @@ public class SubscriptionDebugLogInterceptor {
public void step10_resourceModified(ResourceModifiedMessage theMessage) {
String value = Long.toString(System.currentTimeMillis());
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());
}
/*