Clean up some log messages

This commit is contained in:
Tanguy Leroux 2016-04-01 14:44:50 +02:00
parent c739d9af2b
commit 662c34b888
6 changed files with 8 additions and 7 deletions

View File

@ -37,6 +37,7 @@ import org.elasticsearch.indices.breaker.CircuitBreakerService;
import java.io.IOException; import java.io.IOException;
import java.util.Collection; import java.util.Collection;
import java.util.Collections; import java.util.Collections;
import java.util.concurrent.TimeUnit;
/** /**
* Utility class to build global ordinals. * Utility class to build global ordinals.
@ -63,10 +64,10 @@ public enum GlobalOrdinalsBuilder {
if (logger.isDebugEnabled()) { if (logger.isDebugEnabled()) {
logger.debug( logger.debug(
"Global-ordinals[{}][{}] took {} ms", "global-ordinals [{}][{}] took [{}]",
indexFieldData.getFieldName(), indexFieldData.getFieldName(),
ordinalMap.getValueCount(), ordinalMap.getValueCount(),
TimeValue.nsecToMSec(System.nanoTime() - startTimeNS) new TimeValue(System.nanoTime() - startTimeNS, TimeUnit.NANOSECONDS)
); );
} }
return new InternalGlobalOrdinalsIndexFieldData(indexSettings, indexFieldData.getFieldName(), return new InternalGlobalOrdinalsIndexFieldData(indexSettings, indexFieldData.getFieldName(),

View File

@ -209,7 +209,7 @@ public class ParentChildIndexFieldData extends AbstractIndexFieldData<AtomicPare
breakerService.getBreaker(CircuitBreaker.FIELDDATA).addWithoutBreaking(ramBytesUsed); breakerService.getBreaker(CircuitBreaker.FIELDDATA).addWithoutBreaking(ramBytesUsed);
if (logger.isDebugEnabled()) { if (logger.isDebugEnabled()) {
logger.debug( logger.debug(
"Global-ordinals[_parent] took {}", "global-ordinals [_parent] took [{}]",
new TimeValue(System.nanoTime() - startTime, TimeUnit.NANOSECONDS) new TimeValue(System.nanoTime() - startTime, TimeUnit.NANOSECONDS)
); );
} }

View File

@ -46,7 +46,7 @@ public class FsService extends AbstractComponent {
this.probe = new FsProbe(settings, nodeEnvironment); this.probe = new FsProbe(settings, nodeEnvironment);
TimeValue refreshInterval = REFRESH_INTERVAL_SETTING.get(settings); TimeValue refreshInterval = REFRESH_INTERVAL_SETTING.get(settings);
fsStatsCache = new FsInfoCache(refreshInterval, probe.stats()); fsStatsCache = new FsInfoCache(refreshInterval, probe.stats());
logger.debug("Using probe [{}] with refresh_interval [{}]", probe, refreshInterval); logger.debug("using refresh_interval [{}]", refreshInterval);
} }
public FsInfo stats() { public FsInfo stats() {

View File

@ -47,7 +47,7 @@ public class JvmService extends AbstractComponent {
this.refreshInterval = REFRESH_INTERVAL_SETTING.get(settings); this.refreshInterval = REFRESH_INTERVAL_SETTING.get(settings);
logger.debug("Using refresh_interval [{}]", refreshInterval); logger.debug("using refresh_interval [{}]", refreshInterval);
} }
public JvmInfo info() { public JvmInfo info() {

View File

@ -53,7 +53,7 @@ public class OsService extends AbstractComponent {
this.info.allocatedProcessors = EsExecutors.boundedNumberOfProcessors(settings); this.info.allocatedProcessors = EsExecutors.boundedNumberOfProcessors(settings);
osStatsCache = new OsStatsCache(refreshInterval, probe.osStats()); osStatsCache = new OsStatsCache(refreshInterval, probe.osStats());
logger.debug("Using probe [{}] with refresh_interval [{}]", probe, refreshInterval); logger.debug("using refresh_interval [{}]", refreshInterval);
} }
public OsInfo info() { public OsInfo info() {

View File

@ -47,7 +47,7 @@ public final class ProcessService extends AbstractComponent {
processStatsCache = new ProcessStatsCache(refreshInterval, probe.processStats()); processStatsCache = new ProcessStatsCache(refreshInterval, probe.processStats());
this.info = probe.processInfo(); this.info = probe.processInfo();
this.info.refreshInterval = refreshInterval.millis(); this.info.refreshInterval = refreshInterval.millis();
logger.debug("Using probe [{}] with refresh_interval [{}]", probe, refreshInterval); logger.debug("using refresh_interval [{}]", refreshInterval);
} }
public ProcessInfo info() { public ProcessInfo info() {