From d9882ae1e25410d4cc92133f2d476cfb16c472ce Mon Sep 17 00:00:00 2001 From: lbw Date: Tue, 14 Dec 2021 13:04:21 +0800 Subject: [PATCH] =?UTF-8?q?:loud=5Fsound:=20spring=20cloud=20gateway=20?= =?UTF-8?q?=E5=BC=82=E5=B8=B8=E8=BE=93=E5=87=BA=E6=97=A5=E5=BF=97=E5=A0=86?= =?UTF-8?q?=E6=A0=88=20=E6=96=B9=E4=BE=BF=E6=8E=92=E6=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../gateway/configuration/GlobalExceptionConfiguration.java | 1 + 1 file changed, 1 insertion(+) diff --git a/pigx-common/pigx-common-gateway/src/main/java/com/pig4cloud/pigx/common/gateway/configuration/GlobalExceptionConfiguration.java b/pigx-common/pigx-common-gateway/src/main/java/com/pig4cloud/pigx/common/gateway/configuration/GlobalExceptionConfiguration.java index 37b6c91c3..9cc5f0902 100644 --- a/pigx-common/pigx-common-gateway/src/main/java/com/pig4cloud/pigx/common/gateway/configuration/GlobalExceptionConfiguration.java +++ b/pigx-common/pigx-common-gateway/src/main/java/com/pig4cloud/pigx/common/gateway/configuration/GlobalExceptionConfiguration.java @@ -46,6 +46,7 @@ public class GlobalExceptionConfiguration implements ErrorWebExceptionHandler { return response.writeWith(Mono.fromSupplier(() -> { DataBufferFactory bufferFactory = response.bufferFactory(); try { + log.error("Error Spring Cloud Gateway :", ex); return bufferFactory.wrap(objectMapper.writeValueAsBytes(R.failed(ex.getMessage()))); } catch (JsonProcessingException e) {