Move unneeded log info messages to debug
closes elastic/elasticsearch#2228, elastic/elasticsearch#2227 Original commit: elastic/x-pack-elasticsearch@558751c424
This commit is contained in:
parent
d6179855bd
commit
5161b540a9
|
@ -177,6 +177,9 @@ integTest {
|
||||||
setupCommand 'setupMarvelUser',
|
setupCommand 'setupMarvelUser',
|
||||||
'bin/x-pack/users', 'useradd', 'monitoring_agent', '-p', 'changeme', '-r', 'remote_monitoring_agent'
|
'bin/x-pack/users', 'useradd', 'monitoring_agent', '-p', 'changeme', '-r', 'remote_monitoring_agent'
|
||||||
|
|
||||||
|
// Required to detect that the monitoring agent service has started
|
||||||
|
systemProperty 'es.logger.level', 'DEBUG'
|
||||||
|
|
||||||
waitCondition = { node, ant ->
|
waitCondition = { node, ant ->
|
||||||
// HTTPS check is tricky to do, so we wait for the log file to indicate that the node is started
|
// HTTPS check is tricky to do, so we wait for the log file to indicate that the node is started
|
||||||
String waitForNodeStartProp = "waitForNodeStart${name}"
|
String waitForNodeStartProp = "waitForNodeStart${name}"
|
||||||
|
|
|
@ -120,7 +120,8 @@ public class AgentService extends AbstractLifecycleComponent<AgentService> {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void doStart() {
|
protected void doStart() {
|
||||||
logger.info("monitoring service started");
|
// Please don't remove this log message since it can be used in integration tests
|
||||||
|
logger.debug("monitoring service started");
|
||||||
|
|
||||||
for (Collector collector : collectors) {
|
for (Collector collector : collectors) {
|
||||||
collector.start();
|
collector.start();
|
||||||
|
|
|
@ -64,7 +64,7 @@ public class WatcherService extends AbstractComponent {
|
||||||
public void start(ClusterState clusterState) throws Exception {
|
public void start(ClusterState clusterState) throws Exception {
|
||||||
if (state.compareAndSet(WatcherState.STOPPED, WatcherState.STARTING)) {
|
if (state.compareAndSet(WatcherState.STOPPED, WatcherState.STARTING)) {
|
||||||
try {
|
try {
|
||||||
logger.info("starting watch service...");
|
logger.debug("starting watch service...");
|
||||||
watcherIndexTemplateRegistry.addTemplatesIfMissing();
|
watcherIndexTemplateRegistry.addTemplatesIfMissing();
|
||||||
watchLockService.start();
|
watchLockService.start();
|
||||||
|
|
||||||
|
@ -74,7 +74,7 @@ public class WatcherService extends AbstractComponent {
|
||||||
|
|
||||||
triggerService.start(watchStore.activeWatches());
|
triggerService.start(watchStore.activeWatches());
|
||||||
state.set(WatcherState.STARTED);
|
state.set(WatcherState.STARTED);
|
||||||
logger.info("watch service has started");
|
logger.debug("watch service has started");
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
state.set(WatcherState.STOPPED);
|
state.set(WatcherState.STOPPED);
|
||||||
throw e;
|
throw e;
|
||||||
|
@ -90,7 +90,7 @@ public class WatcherService extends AbstractComponent {
|
||||||
|
|
||||||
public void stop() {
|
public void stop() {
|
||||||
if (state.compareAndSet(WatcherState.STARTED, WatcherState.STOPPING)) {
|
if (state.compareAndSet(WatcherState.STARTED, WatcherState.STOPPING)) {
|
||||||
logger.info("stopping watch service...");
|
logger.debug("stopping watch service...");
|
||||||
triggerService.stop();
|
triggerService.stop();
|
||||||
executionService.stop();
|
executionService.stop();
|
||||||
try {
|
try {
|
||||||
|
@ -100,7 +100,7 @@ public class WatcherService extends AbstractComponent {
|
||||||
}
|
}
|
||||||
watchStore.stop();
|
watchStore.stop();
|
||||||
state.set(WatcherState.STOPPED);
|
state.set(WatcherState.STOPPED);
|
||||||
logger.info("watch service has stopped");
|
logger.debug("watch service has stopped");
|
||||||
} else {
|
} else {
|
||||||
logger.debug("not stopping watcher, because its state is [{}] while [{}] is expected", state, WatcherState.STARTED);
|
logger.debug("not stopping watcher, because its state is [{}] while [{}] is expected", state, WatcherState.STARTED);
|
||||||
}
|
}
|
||||||
|
|
|
@ -36,7 +36,7 @@ public class ScheduleModule extends AbstractModule {
|
||||||
|
|
||||||
public static Class<? extends TriggerEngine> triggerEngineType(Settings nodeSettings) {
|
public static Class<? extends TriggerEngine> triggerEngineType(Settings nodeSettings) {
|
||||||
Engine engine = Engine.resolve(nodeSettings);
|
Engine engine = Engine.resolve(nodeSettings);
|
||||||
Loggers.getLogger(ScheduleModule.class, nodeSettings).info("using [{}] schedule trigger engine",
|
Loggers.getLogger(ScheduleModule.class, nodeSettings).debug("using [{}] schedule trigger engine",
|
||||||
engine.name().toLowerCase(Locale.ROOT));
|
engine.name().toLowerCase(Locale.ROOT));
|
||||||
return engine.engineType();
|
return engine.engineType();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue