From 9946c22d90bfe30ff820c7cdaa84241108fbaa01 Mon Sep 17 00:00:00 2001 From: lbw Date: Mon, 27 Dec 2021 14:36:38 +0800 Subject: [PATCH] =?UTF-8?q?:sparkles:=20Introducing=20new=20features.=20cl?= =?UTF-8?q?ose=20#I4O6LM=20404=20=E5=BC=82=E5=B8=B8=EF=BC=8C=E7=BD=91?= =?UTF-8?q?=E5=85=B3=E4=B8=8D=E6=8A=9B=E5=87=BA=E7=9B=B8=E5=85=B3=E7=9A=84?= =?UTF-8?q?=E5=A0=86=E6=A0=88=E4=BF=A1=E6=81=AF=20=E6=96=B9=E4=BE=BF?= =?UTF-8?q?=E6=A3=80=E7=B4=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pig4cloud/pig/gateway/handler/GlobalExceptionHandler.java | 1 + 1 file changed, 1 insertion(+) diff --git a/pig-gateway/src/main/java/com/pig4cloud/pig/gateway/handler/GlobalExceptionHandler.java b/pig-gateway/src/main/java/com/pig4cloud/pig/gateway/handler/GlobalExceptionHandler.java index de9df88e..fb2584c9 100644 --- a/pig-gateway/src/main/java/com/pig4cloud/pig/gateway/handler/GlobalExceptionHandler.java +++ b/pig-gateway/src/main/java/com/pig4cloud/pig/gateway/handler/GlobalExceptionHandler.java @@ -61,6 +61,7 @@ public class GlobalExceptionHandler implements ErrorWebExceptionHandler { return response.writeWith(Mono.fromSupplier(() -> { DataBufferFactory bufferFactory = response.bufferFactory(); try { + log.warn("Error Spring Cloud Gateway : {}", ex.getMessage()); return bufferFactory.wrap(objectMapper.writeValueAsBytes(R.failed(ex.getMessage()))); } catch (JsonProcessingException e) { -- GitLab