Skip to content

Commit

Permalink
Merge pull request #996 from d3sw/release-v2.56.0
Browse files Browse the repository at this point in the history
Merge Release v2.56.0 to Main
  • Loading branch information
pradeeppalat01 authored Feb 21, 2024
2 parents cc7a781 + 747624c commit 0c64776
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ HttpResponse httpCall(Input input, Task task, Workflow workflow, WorkflowExecuto
response.headers = cr.getHeaders();
return response;
} catch (UniformInterfaceException ex) {
logger.error(ex.getMessage(), ex);
logger.error("HTTP task failed for workflowId{}, taskId {}, taskRefname {}, url {}, errorMessage {}", workflow.getWorkflowId(), task.getTaskId(), task.getReferenceTaskName(), input.getUri(), ex.getMessage());
ClientResponse cr = ex.getResponse();
logger.error("Status Code: {}", cr.getStatus());
if (cr.getStatus() > 199 && cr.getStatus() < 300) {
Expand All @@ -204,11 +204,10 @@ HttpResponse httpCall(Input input, Task task, Workflow workflow, WorkflowExecuto
return response;
} else {
String reason = cr.getEntity(String.class);
logger.error(reason, ex);
throw new Exception(reason);
}
} catch (Exception ex) {
logger.error(ex.getMessage(), ex);
logger.error("HTTP task failed for workflowId{}, taskId {}, taskRefname {}, url {}, errorMessage {}", workflow.getWorkflowId(), task.getTaskId(), task.getReferenceTaskName(), input.getUri(), ex.getMessage());
response.body = null;
response.headers = null;
response.statusCode = -1;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,9 @@ public void sweep(List<String> workflowIds, WorkflowExecutor executor) throws Ex

Future<?> future = es.submit(() -> {
NDC.push("sweep-" + UUID.randomUUID().toString());
logger.debug("Calling decider from sweeper for workflow {}", workflowId);
if (logger.isDebugEnabled()) {
logger.debug("Calling decider from sweeper for workflow {}", workflowId);
}
try {

WorkflowContext ctx = new WorkflowContext(config.getAppId());
Expand Down

0 comments on commit 0c64776

Please sign in to comment.