From 943cccc44e6be5e8953b7dde7d54d33950eef736 Mon Sep 17 00:00:00 2001 From: Nidhi Date: Mon, 9 Sep 2024 10:35:47 +0530 Subject: [PATCH] =?UTF-8?q?chore:=20Added=20logs=20to=20allow=20capturing?= =?UTF-8?q?=20request=20id=20and=20processing=20for=20he=E2=80=A6=20(#3617?= =?UTF-8?q?7)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../server/controllers/ce/HealthCheckControllerCE.java | 3 +++ .../com/appsmith/server/controllers/ce/TenantControllerCE.java | 3 +++ 2 files changed, 6 insertions(+) diff --git a/app/server/appsmith-server/src/main/java/com/appsmith/server/controllers/ce/HealthCheckControllerCE.java b/app/server/appsmith-server/src/main/java/com/appsmith/server/controllers/ce/HealthCheckControllerCE.java index 12d6c1428f..846514fd68 100644 --- a/app/server/appsmith-server/src/main/java/com/appsmith/server/controllers/ce/HealthCheckControllerCE.java +++ b/app/server/appsmith-server/src/main/java/com/appsmith/server/controllers/ce/HealthCheckControllerCE.java @@ -6,11 +6,13 @@ import com.appsmith.server.dtos.ResponseDTO; import com.appsmith.server.services.HealthCheckService; import com.fasterxml.jackson.annotation.JsonView; import lombok.AllArgsConstructor; +import lombok.extern.slf4j.Slf4j; import org.springframework.http.HttpStatus; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; import reactor.core.publisher.Mono; +@Slf4j @RequestMapping(Url.HEALTH_CHECK) @AllArgsConstructor public class HealthCheckControllerCE { @@ -19,6 +21,7 @@ public class HealthCheckControllerCE { @JsonView(Views.Public.class) @GetMapping public Mono> getHealth() { + log.debug("Checking server health ..."); return healthCheckService.getHealth().map(health -> new ResponseDTO<>(HttpStatus.OK.value(), health, null)); } } diff --git a/app/server/appsmith-server/src/main/java/com/appsmith/server/controllers/ce/TenantControllerCE.java b/app/server/appsmith-server/src/main/java/com/appsmith/server/controllers/ce/TenantControllerCE.java index e4b4cbc0ba..ba34d1029f 100644 --- a/app/server/appsmith-server/src/main/java/com/appsmith/server/controllers/ce/TenantControllerCE.java +++ b/app/server/appsmith-server/src/main/java/com/appsmith/server/controllers/ce/TenantControllerCE.java @@ -7,6 +7,7 @@ import com.appsmith.server.domains.TenantConfiguration; import com.appsmith.server.dtos.ResponseDTO; import com.appsmith.server.services.TenantService; import com.fasterxml.jackson.annotation.JsonView; +import lombok.extern.slf4j.Slf4j; import org.springframework.http.HttpStatus; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PutMapping; @@ -16,6 +17,7 @@ import reactor.core.publisher.Mono; import java.util.Map; +@Slf4j @RequestMapping(Url.TENANT_URL) public class TenantControllerCE { @@ -37,6 +39,7 @@ public class TenantControllerCE { @JsonView(Views.Public.class) @GetMapping("/current") public Mono> getTenantConfig() { + log.debug("Attempting to retrieve tenant configuration ... "); return service.getTenantConfiguration() .map(resource -> new ResponseDTO<>(HttpStatus.OK.value(), resource, null)); }