Skip to content

Commit

Permalink
Merge pull request #530 from bozaro/request-log
Browse files Browse the repository at this point in the history
Add GitHub API requests logging
  • Loading branch information
bitwiseman authored Oct 4, 2019
2 parents 7d350d9 + 2782059 commit 78abb2e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/org/kohsuke/github/Requester.java
Original file line number Diff line number Diff line change
Expand Up @@ -558,6 +558,9 @@ private void findNextURL() throws MalformedURLException {


private void setupConnection(URL url) throws IOException {
if (LOGGER.isLoggable(FINE)) {
LOGGER.log(FINE, "GitHub API request [" + (root.login == null ? "anonymous" : root.login) + "]: " + method + " " + url.toString());
}
uc = root.getConnector().connect(url);

// if the authentication is needed but no credential is given, try it anyway (so that some calls
Expand Down

0 comments on commit 78abb2e

Please sign in to comment.