Skip to content

Commit

Permalink
Making log/exception messages more descriptive
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Allen committed Sep 2, 2020
1 parent b5a8647 commit ae81ece
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@ public String getContent(String url) {

return response.toString();
} else {
log.error("Error on the request getting the content. Status-Code: " + responseCode);
log.error("Error on the request getting the content. Status-Code: {} from URL: {}", responseCode, url);
return null;
}
} catch (IOException e) {
throw new RequestException("Error on the HTTP GET request that takes the content from a URL.", e);
throw new RequestException("Error on the HTTP GET request that takes the content from URL: " + url, e);
}
}

Expand Down

0 comments on commit ae81ece

Please sign in to comment.