Fixed logs
This commit is contained in:
parent
4badbb6392
commit
b618f528b6
|
@ -52,10 +52,10 @@ public class RestSmartExecutor implements SmartExecutor {
|
|||
@Context
|
||||
protected UriInfo uriInfo;
|
||||
|
||||
protected void setCalledMethod(String method) {
|
||||
logger.trace("Going to set calledMethod as '{}'", method);
|
||||
CalledMethodProvider.instance.set(method);
|
||||
logger.info("Arrived request at /{}", uriInfo.getPath());
|
||||
protected void setCalledMethod(String calledMethod) {
|
||||
logger.trace("Going to set calledMethod as '{}'", calledMethod);
|
||||
CalledMethodProvider.instance.set(calledMethod);
|
||||
logger.info("Arrived request at {}", uriInfo.getAbsolutePath());
|
||||
}
|
||||
|
||||
protected ResponseBuilder addLocation(ResponseBuilder responseBuilder, String id) {
|
||||
|
@ -167,18 +167,19 @@ public class RestSmartExecutor implements SmartExecutor {
|
|||
@PathParam(UUID_PATH_PARAM) String executionIdentifier,
|
||||
@QueryParam(RestConstants.UNSCHEDULE_PARAM) Boolean unschedule) throws ExecutorException {
|
||||
|
||||
if(unschedule) {
|
||||
setCalledMethod(PURGE.class.getSimpleName() + " /" + RestConstants.PLUGINS_PATH_PART + "/" + pluginName
|
||||
+ "/" + RestConstants.EXECUTIONS_PATH_PART + "/{" + UUID_PATH_PARAM + "}");
|
||||
} else {
|
||||
setCalledMethod(HttpMethod.DELETE + " /" + RestConstants.PLUGINS_PATH_PART + "/"
|
||||
+ pluginName + "/" + RestConstants.EXECUTIONS_PATH_PART + "/{" + UUID_PATH_PARAM + "}");
|
||||
}
|
||||
try {
|
||||
if(unschedule == null) {
|
||||
unschedule = false;
|
||||
}
|
||||
|
||||
if(unschedule) {
|
||||
setCalledMethod(PURGE.class.getSimpleName() + " /" + RestConstants.PLUGINS_PATH_PART + "/" + pluginName
|
||||
+ "/" + RestConstants.EXECUTIONS_PATH_PART + "/{" + UUID_PATH_PARAM + "}");
|
||||
} else {
|
||||
setCalledMethod(HttpMethod.DELETE + " /" + RestConstants.PLUGINS_PATH_PART + "/"
|
||||
+ pluginName + "/" + RestConstants.EXECUTIONS_PATH_PART + "/{" + UUID_PATH_PARAM + "}");
|
||||
}
|
||||
|
||||
logger.info("Requested to delete for {} with UUID {}{}", pluginName, executionIdentifier,
|
||||
unschedule ? "globally" : "");
|
||||
|
||||
|
|
Loading…
Reference in New Issue