Merge branch stable-2.13' into stable-2.14

* stable-2.13:
  LuceneVersionManager: Fix log error messages

Change-Id: Ib7a6d5fa9b51942efeaaedd3b7d2453b52cd56e9
This commit is contained in:
Hugo Arès 2018-02-08 13:19:57 -05:00
commit 523ffacba6

View File

@ -77,7 +77,7 @@ public class LuceneVersionManager extends AbstractVersionManager implements Life
Path p = getDir(sitePaths, def.getName() + "_", schema);
boolean isDir = Files.isDirectory(p);
if (Files.exists(p) && !isDir) {
log.warn("Not a directory: %s", p.toAbsolutePath());
log.warn("Not a directory: {}", p.toAbsolutePath());
}
int v = schema.getVersion();
versions.put(v, new Version<>(schema, v, isDir, cfg.getReady(def.getName(), v)));