Skip to content
Permalink
Browse files
Better logging in mlbridge
Reviewed-by: kcr
  • Loading branch information
erikj79 committed Sep 13, 2021
1 parent d816d14 commit 57944f638cf7ab3e17765ad388231d233e053bcd
@@ -75,4 +75,9 @@ public String botName() {
public String workItemName() {
return "labels-updater";
}

@Override
public String toString() {
return "LabelsUpdaterWorkItem@" + bot.codeRepo().name();
}
}
@@ -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();
}

1 comment on commit 57944f6

@openjdk-notifier
Copy link

@openjdk-notifier openjdk-notifier bot commented on 57944f6 Sep 13, 2021

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.