From e11ab3e9619a93dfc527fc4cc8774f8dafaffeee Mon Sep 17 00:00:00 2001 From: Luis Carilla Ternero <101694456+lcarilla@users.noreply.github.com> Date: Fri, 27 Oct 2023 18:23:44 +0200 Subject: [PATCH] Refine repository scanning finished log message. Log the plural form accordingly. Closes #2967 --- .../repository/config/RepositoryConfigurationDelegate.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/springframework/data/repository/config/RepositoryConfigurationDelegate.java b/src/main/java/org/springframework/data/repository/config/RepositoryConfigurationDelegate.java index a603b37f01..66f1abd3c3 100644 --- a/src/main/java/org/springframework/data/repository/config/RepositoryConfigurationDelegate.java +++ b/src/main/java/org/springframework/data/repository/config/RepositoryConfigurationDelegate.java @@ -206,8 +206,9 @@ public List 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