Fix UpdateSettingsIT#testUpdateMergeMaxThreadCount.

Log the setting(s) that changed in the compound updater.
This commit is contained in:
Jim Ferenczi 2016-09-08 13:38:18 +02:00
parent f319545814
commit f761038dfd
1 changed files with 11 additions and 5 deletions

View File

@ -411,6 +411,12 @@ public class Setting<T> extends ToXContentToBytes {
@Override @Override
public void apply(Tuple<A, B> value, Settings current, Settings previous) { public void apply(Tuple<A, B> value, Settings current, Settings previous) {
if (aSettingUpdater.hasChanged(current, previous)) {
logger.info("updating [{}] from [{}] to [{}]", aSetting.key, aSetting.getRaw(previous), aSetting.getRaw(current));
}
if (bSettingUpdater.hasChanged(current, previous)) {
logger.info("updating [{}] from [{}] to [{}]", bSetting.key, bSetting.getRaw(previous), bSetting.getRaw(current));
}
consumer.accept(value.v1(), value.v2()); consumer.accept(value.v1(), value.v2());
} }