Add a bit of logging to subscription triggering
This commit is contained in:
parent
b220154e9c
commit
4b5dcce021
|
@ -173,6 +173,7 @@ public class SubscriptionTriggeringProvider implements IResourceProvider, Applic
|
|||
synchronized (myActiveJobs) {
|
||||
myActiveJobs.add(jobDetails);
|
||||
}
|
||||
ourLog.info("Subscription triggering requested for {} resource and {} search - Gave job ID: {}", resourceIds.size(), searchUrls.size(), jobDetails.getJobId());
|
||||
|
||||
// Create a parameters response
|
||||
IBaseParameters retVal = ParametersUtil.newInstance(myFhirContext);
|
||||
|
|
|
@ -62,8 +62,8 @@ public class SubscriptionTriggeringDstu3Test extends BaseResourceProviderDstu3Te
|
|||
|
||||
myDaoConfig.setAllowMultipleDelete(true);
|
||||
ourLog.info("Deleting all subscriptions");
|
||||
ourClient.delete().resourceConditionalByUrl("Subscription?status=active").execute();
|
||||
ourClient.delete().resourceConditionalByUrl("Observation?code:missing=false").execute();
|
||||
ourClient.delete().resourceConditionalByUrl("Subscription?_lastUpdated=lt3000").execute();
|
||||
ourClient.delete().resourceConditionalByUrl("Observation?_lastUpdated=lt3000").execute();
|
||||
ourLog.info("Done deleting all subscriptions");
|
||||
myDaoConfig.setAllowMultipleDelete(new DaoConfig().isAllowMultipleDelete());
|
||||
|
||||
|
@ -151,8 +151,6 @@ public class SubscriptionTriggeringDstu3Test extends BaseResourceProviderDstu3Te
|
|||
waitForSize(1, ourUpdatedObservations);
|
||||
assertEquals(Constants.CT_FHIR_JSON_NEW, ourContentTypes.get(0));
|
||||
|
||||
ourClient.registerInterceptor(new LoggingInterceptor(true));
|
||||
|
||||
Parameters response = ourClient
|
||||
.operation()
|
||||
.onInstance(subscriptionId)
|
||||
|
@ -199,8 +197,6 @@ public class SubscriptionTriggeringDstu3Test extends BaseResourceProviderDstu3Te
|
|||
|
||||
ourSubscriptionTriggeringProvider.setMaxSubmitPerPass(33);
|
||||
|
||||
ourClient.registerInterceptor(new LoggingInterceptor(true));
|
||||
|
||||
Parameters response = ourClient
|
||||
.operation()
|
||||
.onInstance(sub1id)
|
||||
|
@ -257,8 +253,6 @@ public class SubscriptionTriggeringDstu3Test extends BaseResourceProviderDstu3Te
|
|||
|
||||
ourSubscriptionTriggeringProvider.setMaxSubmitPerPass(33);
|
||||
|
||||
ourClient.registerInterceptor(new LoggingInterceptor(true));
|
||||
|
||||
Parameters response = ourClient
|
||||
.operation()
|
||||
.onInstance(sub1id)
|
||||
|
@ -322,8 +316,6 @@ public class SubscriptionTriggeringDstu3Test extends BaseResourceProviderDstu3Te
|
|||
|
||||
ourSubscriptionTriggeringProvider.setMaxSubmitPerPass(50);
|
||||
|
||||
ourClient.registerInterceptor(new LoggingInterceptor(true));
|
||||
|
||||
Parameters response = ourClient
|
||||
.operation()
|
||||
.onType(Subscription.class)
|
||||
|
|
Loading…
Reference in New Issue