From c696f7ab3ac5974840ef8a37d64cde97f2ab997c Mon Sep 17 00:00:00 2001 From: David Roberts Date: Mon, 14 Dec 2020 14:42:27 +0000 Subject: [PATCH] [ML] Remove excessive logging from ML upgrade mode (#65897) While looking into another issue I noticed that when enabling or disabling ML upgrade mode some very low level messages are logged at the INFO level. This commit reduces that to TRACE. --- .../xpack/ml/action/TransportSetUpgradeModeAction.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/x-pack/plugin/ml/src/main/java/org/elasticsearch/xpack/ml/action/TransportSetUpgradeModeAction.java b/x-pack/plugin/ml/src/main/java/org/elasticsearch/xpack/ml/action/TransportSetUpgradeModeAction.java index 7cde09af55ad..373fd5675a9e 100644 --- a/x-pack/plugin/ml/src/main/java/org/elasticsearch/xpack/ml/action/TransportSetUpgradeModeAction.java +++ b/x-pack/plugin/ml/src/main/java/org/elasticsearch/xpack/ml/action/TransportSetUpgradeModeAction.java @@ -229,13 +229,13 @@ protected void masterOperation(Task task, SetUpgradeModeAction.Request request, @Override protected AcknowledgedResponse newResponse(boolean acknowledged) { - logger.info("Cluster update response built: " + acknowledged); + logger.trace("Cluster update response built: " + acknowledged); return AcknowledgedResponse.of(acknowledged); } @Override public ClusterState execute(ClusterState currentState) throws Exception { - logger.info("Executing cluster state update"); + logger.trace("Executing cluster state update"); MlMetadata.Builder builder = new MlMetadata.Builder(currentState.metadata().custom(MlMetadata.TYPE)); builder.isUpgradeMode(request.isEnabled()); ClusterState.Builder newState = ClusterState.builder(currentState);