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',
|
||||
'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 ->
|
||||
// HTTPS check is tricky to do, so we wait for the log file to indicate that the node is started
|
||||
String waitForNodeStartProp = "waitForNodeStart${name}"
|
||||
|
|
|
@ -120,7 +120,8 @@ public class AgentService extends AbstractLifecycleComponent<AgentService> {
|
|||
|
||||
@Override
|
||||
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) {
|
||||
collector.start();
|
||||
|
|
|
@ -64,7 +64,7 @@ public class WatcherService extends AbstractComponent {
|
|||
public void start(ClusterState clusterState) throws Exception {
|
||||
if (state.compareAndSet(WatcherState.STOPPED, WatcherState.STARTING)) {
|
||||
try {
|
||||
logger.info("starting watch service...");
|
||||
logger.debug("starting watch service...");
|
||||
watcherIndexTemplateRegistry.addTemplatesIfMissing();
|
||||
watchLockService.start();
|
||||
|
||||
|
@ -74,7 +74,7 @@ public class WatcherService extends AbstractComponent {
|
|||
|
||||
triggerService.start(watchStore.activeWatches());
|
||||
state.set(WatcherState.STARTED);
|
||||
logger.info("watch service has started");
|
||||
logger.debug("watch service has started");
|
||||
} catch (Exception e) {
|
||||
state.set(WatcherState.STOPPED);
|
||||
throw e;
|
||||
|
@ -90,7 +90,7 @@ public class WatcherService extends AbstractComponent {
|
|||
|
||||
public void stop() {
|
||||
if (state.compareAndSet(WatcherState.STARTED, WatcherState.STOPPING)) {
|
||||
logger.info("stopping watch service...");
|
||||
logger.debug("stopping watch service...");
|
||||
triggerService.stop();
|
||||
executionService.stop();
|
||||
try {
|
||||
|
@ -100,7 +100,7 @@ public class WatcherService extends AbstractComponent {
|
|||
}
|
||||
watchStore.stop();
|
||||
state.set(WatcherState.STOPPED);
|
||||
logger.info("watch service has stopped");
|
||||
logger.debug("watch service has stopped");
|
||||
} else {
|
||||
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) {
|
||||
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));
|
||||
return engine.engineType();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue