Skip to content

Commit 84a9d12

Browse files
committed
fix path quoting
1 parent b1b8fba commit 84a9d12

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

opengrok-indexer/src/main/java/org/opengrok/indexer/history/HistoryGuru.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -920,20 +920,20 @@ private void createHistoryCache(Repository repository, String sinceRevision) {
920920
if (repository.isWorking()) {
921921
Statistics elapsed = new Statistics();
922922

923-
LOGGER.log(Level.INFO, "Creating history cache for {0} ({1}) {2} renamed file handling",
923+
LOGGER.log(Level.INFO, "Creating history cache for ''{0}'' ({1}) {2} renamed file handling",
924924
new Object[]{path, type, repository.isHandleRenamedFiles() ? "with" : "without"});
925925

926926
try {
927927
repository.createCache(historyCache, sinceRevision);
928928
} catch (Exception e) {
929929
LOGGER.log(Level.WARNING,
930-
"An error occurred while creating cache for " + path + " (" + type + ")", e);
930+
String.format("An error occurred while creating cache for '%s' (%s)", path, type), e);
931931
}
932932

933-
elapsed.report(LOGGER, "Done history cache for " + path);
933+
elapsed.report(LOGGER, String.format("Done history cache for '%s'", path));
934934
} else {
935935
LOGGER.log(Level.WARNING,
936-
"Skipping creation of history cache of {0} repository in {1}: Missing SCM dependencies?",
936+
"Skipping creation of history cache of {0} repository in ''{1}'': Missing SCM dependencies?",
937937
new Object[]{type, path});
938938
}
939939
}

0 commit comments

Comments
 (0)