Skip to content

Commit

Permalink
Add debug trace to JobResource.doUpdateJob()
Browse files Browse the repository at this point in the history
  • Loading branch information
steinarb committed Oct 5, 2018
1 parent 190d205 commit 445eac6
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ public Account doRegisterJob(PerformedTransaction performedJob) {
@Consumes(MediaType.APPLICATION_JSON)
public List<Transaction> doUpdateJob(UpdatedTransaction editedJob) {
try {
if (editedJob.getTransactionTime() != null) {
System.err.println(String.format("JobResource.doUpdateJob(1): editedJob.getTransactionTypeId(): %d editedJob.getTransactionAmount(): %f editedJob.getTransactionAmount(): %d", editedJob.getTransactionTypeId(), editedJob.getTransactionAmount(), editedJob.getTransactionTime().getTime()));
}
return ukelonn.updateJob(editedJob);
} catch (UkelonnException e) {
logservice.log(LogService.LOG_ERROR, "REST endpoint /api/job/update failed", e);
Expand Down

0 comments on commit 445eac6

Please sign in to comment.