From fe5570dba8a86513e6483ac055fbce3a10381082 Mon Sep 17 00:00:00 2001 From: Michael McCandless Date: Sun, 6 Dec 2015 06:10:43 -0500 Subject: [PATCH] use dummy mac address if anything goes wrong asking for the real one --- .../java/org/elasticsearch/common/MacAddressProvider.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/org/elasticsearch/common/MacAddressProvider.java b/core/src/main/java/org/elasticsearch/common/MacAddressProvider.java index 7952cbe2892..feb4707eac8 100644 --- a/core/src/main/java/org/elasticsearch/common/MacAddressProvider.java +++ b/core/src/main/java/org/elasticsearch/common/MacAddressProvider.java @@ -65,8 +65,8 @@ public class MacAddressProvider { byte[] address = null; try { address = getMacAddress(); - } catch( SocketException se ) { - logger.warn("Unable to get mac address, will use a dummy address", se); + } catch (Throwable t) { + logger.warn("Unable to get mac address, will use a dummy address", t); // address will be set below }