Skip to content

Commit

Permalink
[ML] Remove excessive logging from ML upgrade mode (#65897)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
droberts195 authored Dec 14, 2020
1 parent 2a1db9b commit c696f7a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit c696f7a

Please sign in to comment.