Skip to content

Commit

Permalink
Better logging in mlbridge
Browse files Browse the repository at this point in the history
Reviewed-by: kcr
  • Loading branch information
erikj79 committed Sep 13, 2021
1 parent d816d14 commit 57944f6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Expand Up @@ -75,4 +75,9 @@ public String botName() {
public String workItemName() {
return "labels-updater";
}

@Override
public String toString() {
return "LabelsUpdaterWorkItem@" + bot.codeRepo().name();
}
}
Expand Up @@ -210,10 +210,10 @@ public List<WorkItem> getPeriodicItems() {
if (lastFullUpdate == null || lastFullUpdate.isBefore(ZonedDateTime.now().minus(Duration.ofMinutes(10)))) {
lastFullUpdate = ZonedDateTime.now();
lastPartialUpdate = lastFullUpdate;
log.info("Fetching all open pull requests");
log.info("Fetching all open pull requests for " + codeRepo.name());
prs = codeRepo.pullRequests();
} else {
log.info("Fetching recently updated pull requests (open and closed)");
log.info("Fetching recently updated pull requests (open and closed) for " + codeRepo.name());
prs = codeRepo.pullRequests(ZonedDateTime.now().minus(Duration.ofDays(14)));
lastPartialUpdate = ZonedDateTime.now();
}
Expand Down

1 comment on commit 57944f6

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.