mirror of
https://gitee.com/dromara/RuoYi-Cloud-Plus.git
synced 2025-09-05 20:08:05 +00:00
update 优化 LoadBalancer 模块 增加日志输出便于调试
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user