Skip to content

Commit

Permalink
Refine repository scanning finished log message.
Browse files Browse the repository at this point in the history
Log the plural form accordingly.

Closes #2967
  • Loading branch information
lcarilla authored and mp911de committed Nov 9, 2023
1 parent fca8cb3 commit c52520a
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,9 @@ public List<BeanComponentDefinition> registerRepositoriesIn(BeanDefinitionRegist

if (logger.isInfoEnabled()) {
logger.info(
LogMessage.format("Finished Spring Data repository scanning in %s ms. Found %s %s repository interfaces.",
watch.getLastTaskTimeMillis(), configurations.size(), extension.getModuleName()));
LogMessage.format("Finished Spring Data repository scanning in %s ms. Found %s %s repository interface%s." ,
watch.getLastTaskTimeMillis(), configurations.size(),
extension.getModuleName(), configurations.size() == 1 ? "" : "s"));
}

// TODO: AOT Processing -> guard this one with a flag so it's not always present
Expand Down

0 comments on commit c52520a

Please sign in to comment.