Skip to content

Commit

Permalink
logging
Browse files Browse the repository at this point in the history
  • Loading branch information
marcos-lg committed Jul 12, 2023
1 parent 30fc162 commit 59d7955
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,12 @@ public void updateGRSciCollCountsEndpoint() {
@Scheduled(cron = "${grscicoll.counts.cron:* * 8-9 * * 1-5}")
@Transactional
public void scheduleUpdateCounts() {
log.info("Updating GRSciColl counts");
updateCounts();
}

private void updateCounts() {
log.info("Updating GRSciColl counts");

long institutionsCount = institutionMapper.count(InstitutionSearchParams.builder().build());
long collectionsCount = collectionMapper.count(CollectionSearchParams.builder().build());
long facetCount = Math.max(institutionsCount, collectionsCount);
Expand Down

0 comments on commit 59d7955

Please sign in to comment.