From 2f1aba962c69b067e3ad7d4098df325bf90d1e05 Mon Sep 17 00:00:00 2001 From: kimchy Date: Mon, 21 Mar 2011 14:36:56 +0200 Subject: [PATCH] add the exception as well to the logging --- .../cluster/metadata/MetaDataUpdateSettingsService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/elasticsearch/src/main/java/org/elasticsearch/cluster/metadata/MetaDataUpdateSettingsService.java b/modules/elasticsearch/src/main/java/org/elasticsearch/cluster/metadata/MetaDataUpdateSettingsService.java index 9efb4d72bf2..28299a5eef6 100644 --- a/modules/elasticsearch/src/main/java/org/elasticsearch/cluster/metadata/MetaDataUpdateSettingsService.java +++ b/modules/elasticsearch/src/main/java/org/elasticsearch/cluster/metadata/MetaDataUpdateSettingsService.java @@ -66,7 +66,7 @@ public class MetaDataUpdateSettingsService extends AbstractComponent implements max = Integer.parseInt(sMax); } } catch (Exception e) { - logger.warn("failed to set [{}], wrong format [{}]", IndexMetaData.SETTING_AUTO_EXPAND_REPLICAS, autoExpandReplicas); + logger.warn("failed to set [{}], wrong format [{}]", e, IndexMetaData.SETTING_AUTO_EXPAND_REPLICAS, autoExpandReplicas); continue; }