Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 78abb2e

Browse filesBrowse files
authored
Merge pull request hub4j#530 from bozaro/request-log
Add GitHub API requests logging
2 parents 7d350d9 + 2782059 commit 78abb2e
Copy full SHA for 78abb2e

File tree

Expand file treeCollapse file tree

1 file changed

+3
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-0
lines changed

‎src/main/java/org/kohsuke/github/Requester.java

Copy file name to clipboardExpand all lines: src/main/java/org/kohsuke/github/Requester.java
+3Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -558,6 +558,9 @@ private void findNextURL() throws MalformedURLException {
558558

559559

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

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

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.