Skip to content

Commit

Permalink
add logging for error cause
Browse files Browse the repository at this point in the history
  • Loading branch information
Sander14121 committed May 23, 2024
1 parent 439e871 commit c66861f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/no/fintlabs/linkwalker/LinkWalker.java
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ private void fetchResources(Task task) {
processLinks(task);
},
throwable -> {
log.info(String.valueOf(throwable.getCause()));
log.info(task.getToken());
task.setStatus(Task.Status.FAILED);
log.error("Error fetching resources for task: " + throwable.getMessage());
}
Expand Down

0 comments on commit c66861f

Please sign in to comment.