Skip to content

Commit 5d61844

Browse files
authored
chore: add logging on issue fetching
1 parent a48c957 commit 5d61844

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main/java/hudson/plugins/jira/JiraRestService.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
*/
1616
package hudson.plugins.jira;
1717

18+
import static java.util.logging.Level.FINE;
1819
import static java.util.logging.Level.INFO;
1920
import static java.util.logging.Level.WARNING;
2021

@@ -166,6 +167,7 @@ public void addComment(String issueId, String commentBody, String groupVisibilit
166167
}
167168

168169
public Issue getIssue(String issueKey) {
170+
LOGGER.log(FINE, "[Jira] Fetching issue {0}", issueKey);
169171
try {
170172
return jiraRestClient.getIssueClient().getIssue(issueKey).get(timeout, TimeUnit.SECONDS);
171173
} catch (Exception e) {
@@ -228,6 +230,7 @@ public List<String> getProjectsKeys() {
228230
}
229231

230232
public List<Issue> getIssuesFromJqlSearch(String jqlSearch, Integer maxResults) throws TimeoutException {
233+
LOGGER.log(FINE, "[Jira] Executing JQL: {0}", jqlSearch);
231234
try {
232235
Set<String> neededFields = new HashSet<>(
233236
Arrays.asList("summary", "issuetype", "created", "updated", "project", "status", "fixVersions"));

0 commit comments

Comments
 (0)