@@ -132,7 +132,7 @@ private void initFields() throws IOException {
132132 Set <String > copy = new HashSet <>(allowedFields );
133133 copy .removeAll (indexedFields );
134134 logger .log (Level .WARNING ,
135- "Fields {0} will be ignored because they were not found in index directory {1}" ,
135+ "Fields {0} will be ignored because they were not found in index directory '' {1}'' " ,
136136 new Object [] {copy , indexDir });
137137
138138 copy = new HashSet <>(allowedFields );
@@ -201,7 +201,7 @@ private void loadStoredWFSTs() throws IOException {
201201 var wfst = loadStoredWFST (wfstFile );
202202 lookups .put (field , wfst );
203203 } else {
204- logger .log (Level .INFO , "Missing WFST file for {0} field in {1}, creating a new one" ,
204+ logger .log (Level .INFO , "Missing WFST file for {0} field in '' {1}'' , creating a new one" ,
205205 new Object [] {field , suggesterDir });
206206
207207 WFSTCompletionLookup lookup = build (indexReader , field );
@@ -404,12 +404,12 @@ public List<Lookup.LookupResult> lookup(final String field, final String prefix,
404404 try {
405405 WFSTCompletionLookup lookup = lookups .get (field );
406406 if (lookup == null ) {
407- logger .log (Level .WARNING , "No WFST for field {0} in {1}" , new Object [] {field , suggesterDir });
407+ logger .log (Level .WARNING , "No WFST for field {0} in '' {1}'' " , new Object [] {field , suggesterDir });
408408 return Collections .emptyList ();
409409 }
410410 return lookup .lookup (prefix , false , resultSize );
411411 } catch (IOException e ) {
412- logger .log (Level .WARNING , "Could not perform lookup in {0} for {1}:{2}" ,
412+ logger .log (Level .WARNING , "Could not perform lookup in '' {0}'' for {1}:{2}" ,
413413 new Object [] {suggesterDir , field , prefix });
414414 } finally {
415415 lock .readLock ().unlock ();
0 commit comments