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