mirror of
https://github.com/hapifhir/hapi-fhir.git
synced 2025-02-17 02:15:22 +00:00
Merge pull request #1528 from jamesagnew/ks-subscription-logging
fix subscription logging for delete
This commit is contained in:
commit
541f318504
@ -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) {
|
||||
|
@ -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());
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user