mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-03 09:29:11 +00:00
better debug logging of where the default mapping is loaded from
This commit is contained in:
parent
72eb1508c6
commit
2b388cff5a
@ -19,6 +19,7 @@
|
||||
|
||||
package org.elasticsearch.index.mapper;
|
||||
|
||||
import com.google.common.base.Charsets;
|
||||
import com.google.common.collect.ImmutableMap;
|
||||
import com.google.common.collect.Sets;
|
||||
import com.google.common.collect.UnmodifiableIterator;
|
||||
@ -125,12 +126,12 @@ public class MapperService extends AbstractIndexComponent implements Iterable<Do
|
||||
}
|
||||
|
||||
try {
|
||||
defaultMappingSource = Streams.copyToString(new InputStreamReader(defaultMappingUrl.openStream(), "UTF-8"));
|
||||
defaultMappingSource = Streams.copyToString(new InputStreamReader(defaultMappingUrl.openStream(), Charsets.UTF_8));
|
||||
} catch (IOException e) {
|
||||
throw new MapperException("Failed to load default mapping source from [" + defaultMappingLocation + "]", e);
|
||||
}
|
||||
|
||||
logger.debug("using dynamic[{}], default mapping: location[{}] and source[{}]", dynamic, defaultMappingLocation, defaultMappingSource);
|
||||
logger.debug("using dynamic[{}], default mapping: default_mapping_location[{}], loaded_from[{}] and source[{}]", dynamic, defaultMappingLocation, defaultMappingUrl, defaultMappingSource);
|
||||
}
|
||||
|
||||
public void close() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user