@@ -780,10 +780,7 @@ private Collection<RepositoryInfo> addRepositories(File[] files, int allowedNest
780780 continue ;
781781 }
782782
783- String path ;
784783 try {
785- path = file .getCanonicalPath ();
786-
787784 Repository repository = null ;
788785 try {
789786 repository = RepositoryFactory .getRepository (file , CommandTimeoutType .INDEXER , isNested );
@@ -821,8 +818,7 @@ private Collection<RepositoryInfo> addRepositories(File[] files, int allowedNest
821818 }
822819 }
823820 } else {
824- LOGGER .log (Level .CONFIG , "Adding <{0}> repository for ''{1}''" ,
825- new Object []{repository .getClass ().getName (), path });
821+ LOGGER .log (Level .CONFIG , "Adding repository {0}" , repository );
826822
827823 repoList .add (new RepositoryInfo (repository ));
828824 putRepository (repository );
@@ -937,34 +933,28 @@ public void storeHistory(File file, History history) {
937933 }
938934
939935 private void createHistoryCache (Repository repository , String sinceRevision ) {
940- String path = repository .getDirectoryName ();
941- String type = repository .getClass ().getSimpleName ();
942-
943936 if (!repository .isHistoryEnabled ()) {
944937 LOGGER .log (Level .INFO ,
945- "Skipping history cache creation of {0} repository in ''{1}'' and its subdirectories" ,
946- new Object []{type , path });
938+ "Skipping history cache creation for {0} and its subdirectories" , repository );
947939 return ;
948940 }
949941
950942 if (repository .isWorking ()) {
951943 Statistics elapsed = new Statistics ();
952944
953- LOGGER .log (Level .INFO , "Creating history cache for ''{0}'' ({1}) {2} renamed file handling" ,
954- new Object []{path , type , repository .isHandleRenamedFiles () ? "with" : "without" });
945+ LOGGER .log (Level .INFO , "Creating history cache for {0}" , repository );
955946
956947 try {
957948 repository .createCache (historyCache , sinceRevision );
958949 } catch (Exception e ) {
959950 LOGGER .log (Level .WARNING ,
960- String .format ("An error occurred while creating cache for '%s' (%s) " , path , type ), e );
951+ String .format ("An error occurred while creating cache for %s " , repository ), e );
961952 }
962953
963- elapsed .report (LOGGER , String .format ("Done history cache for '%s' " , path ));
954+ elapsed .report (LOGGER , String .format ("Done history cache for %s " , repository ));
964955 } else {
965956 LOGGER .log (Level .WARNING ,
966- "Skipping creation of history cache of {0} repository in ''{1}'': Missing SCM dependencies?" ,
967- new Object []{type , path });
957+ "Skipping creation of history cache for {0}: Missing SCM dependencies?" , repository );
968958 }
969959 }
970960
@@ -993,10 +983,7 @@ private void createHistoryCacheReal(Collection<Repository> repositories) {
993983 latestRev = historyCache .getLatestCachedRevision (repo );
994984 repos2process .put (repo , latestRev );
995985 } catch (CacheException he ) {
996- LOGGER .log (Level .WARNING ,
997- String .format (
998- "Failed to retrieve latest cached revision for %s" ,
999- repo .getDirectoryName ()), he );
986+ LOGGER .log (Level .WARNING , String .format ("Failed to retrieve latest cached revision for %s" , repo ), he );
1000987 }
1001988 }
1002989
@@ -1033,8 +1020,7 @@ private void createHistoryCacheReal(Collection<Repository> repositories) {
10331020 try {
10341021 historyCache .optimize ();
10351022 } catch (CacheException he ) {
1036- LOGGER .log (Level .WARNING ,
1037- "Failed optimizing the history cache database" , he );
1023+ LOGGER .log (Level .WARNING , "Failed optimizing the history cache database" , he );
10381024 }
10391025 elapsed .report (LOGGER , "Done history cache for all repositories" , "indexer.history.cache" );
10401026 setHistoryIndexDone ();
0 commit comments