|
@ -123,6 +123,9 @@ public class LogMsgSendFilter extends LevelFilter { |
|
|
try { |
|
|
try { |
|
|
if (serverIp == null) { |
|
|
if (serverIp == null) { |
|
|
InetUtils inetUtils = SpringContextUtils.getBean(InetUtils.class); |
|
|
InetUtils inetUtils = SpringContextUtils.getBean(InetUtils.class); |
|
|
|
|
|
if (inetUtils.findFirstNonLoopbackHostInfo() == null){ |
|
|
|
|
|
return; |
|
|
|
|
|
} |
|
|
serverIp = inetUtils.findFirstNonLoopbackHostInfo().getIpAddress(); |
|
|
serverIp = inetUtils.findFirstNonLoopbackHostInfo().getIpAddress(); |
|
|
} |
|
|
} |
|
|
} catch (Exception e) { |
|
|
} catch (Exception e) { |
|
|