This is an automated email from the ASF dual-hosted git repository.

Aias00 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shenyu.git


The following commit(s) were added to refs/heads/master by this push:
     new be4c8f256a fix(logging): retain close exception details (#7126)
be4c8f256a is described below

commit be4c8f256a4f5ee6938cb6e1d776b1b767a3404c
Author: Liming Deng <[email protected]>
AuthorDate: Thu Oct 1 06:29:18 2026 +0800

    fix(logging): retain close exception details (#7126)
---
 .../shenyu/plugin/logging/common/client/AbstractLogConsumeClient.java   | 2 +-
 .../shenyu/plugin/huawei/lts/client/HuaweiLtsLogCollectClient.java      | 2 +-
 .../shenyu/plugin/tencent/cls/client/TencentClsLogCollectClient.java    | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git 
a/shenyu-plugin/shenyu-plugin-logging/shenyu-plugin-logging-common/src/main/java/org/apache/shenyu/plugin/logging/common/client/AbstractLogConsumeClient.java
 
b/shenyu-plugin/shenyu-plugin-logging/shenyu-plugin-logging-common/src/main/java/org/apache/shenyu/plugin/logging/common/client/AbstractLogConsumeClient.java
index b5dafa3fae..86e6dda16a 100644
--- 
a/shenyu-plugin/shenyu-plugin-logging/shenyu-plugin-logging-common/src/main/java/org/apache/shenyu/plugin/logging/common/client/AbstractLogConsumeClient.java
+++ 
b/shenyu-plugin/shenyu-plugin-logging/shenyu-plugin-logging-common/src/main/java/org/apache/shenyu/plugin/logging/common/client/AbstractLogConsumeClient.java
@@ -91,7 +91,7 @@ public abstract class AbstractLogConsumeClient<T extends 
GenericGlobalConfig, L
             try {
                 this.close0();
             } catch (Exception e) {
-                LOG.error("{} close error.", this.getClass().getSimpleName());
+                LOG.error("{} close error.", this.getClass().getSimpleName(), 
e);
             }
         }
     }
diff --git 
a/shenyu-plugin/shenyu-plugin-logging/shenyu-plugin-logging-huawei-lts/src/main/java/org/apache/shenyu/plugin/huawei/lts/client/HuaweiLtsLogCollectClient.java
 
b/shenyu-plugin/shenyu-plugin-logging/shenyu-plugin-logging-huawei-lts/src/main/java/org/apache/shenyu/plugin/huawei/lts/client/HuaweiLtsLogCollectClient.java
index 8ec3c71d13..cec7c4238d 100644
--- 
a/shenyu-plugin/shenyu-plugin-logging/shenyu-plugin-logging-huawei-lts/src/main/java/org/apache/shenyu/plugin/huawei/lts/client/HuaweiLtsLogCollectClient.java
+++ 
b/shenyu-plugin/shenyu-plugin-logging/shenyu-plugin-logging-huawei-lts/src/main/java/org/apache/shenyu/plugin/huawei/lts/client/HuaweiLtsLogCollectClient.java
@@ -122,7 +122,7 @@ public class HuaweiLtsLogCollectClient extends 
AbstractLogConsumeClient<HuaweiLo
                 try {
                     producer.close();
                 } catch (InterruptedException | ProducerException e) {
-                    LOG.error("Close producer error.");
+                    LOG.error("Close producer error.", e);
                 }
             }
         } finally {
diff --git 
a/shenyu-plugin/shenyu-plugin-logging/shenyu-plugin-logging-tencent-cls/src/main/java/org/apache/shenyu/plugin/tencent/cls/client/TencentClsLogCollectClient.java
 
b/shenyu-plugin/shenyu-plugin-logging/shenyu-plugin-logging-tencent-cls/src/main/java/org/apache/shenyu/plugin/tencent/cls/client/TencentClsLogCollectClient.java
index df7f8fb3f2..1b02ba1242 100644
--- 
a/shenyu-plugin/shenyu-plugin-logging/shenyu-plugin-logging-tencent-cls/src/main/java/org/apache/shenyu/plugin/tencent/cls/client/TencentClsLogCollectClient.java
+++ 
b/shenyu-plugin/shenyu-plugin-logging/shenyu-plugin-logging-tencent-cls/src/main/java/org/apache/shenyu/plugin/tencent/cls/client/TencentClsLogCollectClient.java
@@ -124,7 +124,7 @@ public class TencentClsLogCollectClient extends 
AbstractLogConsumeClient<Tencent
                 try {
                     client.close();
                 } catch (InterruptedException | ProducerException e) {
-                    LOG.error("Close producer error.");
+                    LOG.error("Close producer error.", e);
                 }
             }
         } finally {

Reply via email to