From bbfc5fdaaaaaeabc4088a7185af90b53cbfd60c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=96=AF=E7=8B=82=E7=9A=84=E7=8B=AE=E5=AD=90Li?= <15040126243@163.com> Date: Wed, 8 Jun 2022 20:52:42 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E4=BC=98=E5=8C=96=20LoadBalancer=20?= =?UTF-8?q?=E6=A8=A1=E5=9D=97=20=E5=A2=9E=E5=8A=A0=E6=97=A5=E5=BF=97?= =?UTF-8?q?=E8=BE=93=E5=87=BA=E4=BE=BF=E4=BA=8E=E8=B0=83=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../common/loadbalance/constant/LoadBalancerConstant.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ruoyi-common/ruoyi-common-loadbalancer/src/main/java/com/ruoyi/common/loadbalance/constant/LoadBalancerConstant.java b/ruoyi-common/ruoyi-common-loadbalancer/src/main/java/com/ruoyi/common/loadbalance/constant/LoadBalancerConstant.java index 640958ff..a352096b 100644 --- a/ruoyi-common/ruoyi-common-loadbalancer/src/main/java/com/ruoyi/common/loadbalance/constant/LoadBalancerConstant.java +++ b/ruoyi-common/ruoyi-common-loadbalancer/src/main/java/com/ruoyi/common/loadbalance/constant/LoadBalancerConstant.java @@ -1,5 +1,7 @@ package com.ruoyi.common.loadbalance.constant; +import lombok.extern.slf4j.Slf4j; + import java.net.InetAddress; import java.net.UnknownHostException; @@ -8,6 +10,7 @@ import java.net.UnknownHostException; * * @author Lion Li */ +@Slf4j public class LoadBalancerConstant { /** @@ -25,6 +28,7 @@ public class LoadBalancerConstant { } catch (UnknownHostException e) { e.printStackTrace(); } + log.debug("[LoadBalancer] - 本机IP地址: {}", host); return host; } }