Skip to content

Commit

Permalink
Fixed logging to ZAPI
Browse files Browse the repository at this point in the history
  • Loading branch information
robertgates55 committed Dec 3, 2015
1 parent cfdda36 commit 04348d8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/java/com/frameworkium/jira/zapi/Execution.java
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,12 @@ private void updateStatusAndComment(final Integer executionId, final int status,
comment = comment.substring(0, 747) + "...";
}
obj.put("comment", comment);

given().contentType("application/json").and().body(obj.toString()).then().put("execution/" + executionId + "/execute");

} catch (JSONException e) {
logger.error("Update status and comment failed", e);
}

given().contentType("application/json").and().body(obj).then().put("execution/" + executionId + "/execute");
}

private void deleteExistingAttachments(final Integer executionId) {
Expand Down

1 comment on commit 04348d8

@robertgates55
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Resolves issue #27

Please sign in to comment.