From 1b28edaeee17acebb0081fc4ac766bb8dcf0a23c Mon Sep 17 00:00:00 2001 From: wxz Date: Thu, 5 Aug 2021 12:45:15 +0800 Subject: [PATCH] =?UTF-8?q?=E5=81=A5=E5=BA=B7=E6=A3=80=E6=9F=A5=EF=BC=9A?= =?UTF-8?q?=E6=94=B9=E8=89=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/epmet/healthcheck/HealthCheckController.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/healthcheck/HealthCheckController.java b/epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/healthcheck/HealthCheckController.java index d03caf495f..64d7de00bd 100644 --- a/epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/healthcheck/HealthCheckController.java +++ b/epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/healthcheck/HealthCheckController.java @@ -2,6 +2,7 @@ package com.epmet.healthcheck; import com.epmet.commons.tools.utils.IpUtils; import com.epmet.commons.tools.utils.Result; +import lombok.extern.slf4j.Slf4j; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; @@ -11,6 +12,7 @@ import javax.servlet.http.HttpServletResponse; @RestController @RequestMapping("healthcheck") +@Slf4j public class HealthCheckController { /** @@ -20,6 +22,7 @@ public class HealthCheckController { @PostMapping("http") public Result httpHealthCheck(HttpServletRequest request) { String serverName = request.getServerName(); + log.info("健康检查:serverName:{}", serverName); return new Result().ok(serverName); }