You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shenyu.apache.org by xi...@apache.org on 2023/07/02 08:48:09 UTC

[shenyu] branch master updated: Update ShenyuClientShutdownHook.java (#4780)

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

xiaoyu 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 eca121193 Update ShenyuClientShutdownHook.java (#4780)
eca121193 is described below

commit eca121193e0fb039dcbd3a1b85ef499227f36fd6
Author: wanyaoasiainfo <11...@users.noreply.github.com>
AuthorDate: Sun Jul 2 16:48:03 2023 +0800

    Update ShenyuClientShutdownHook.java (#4780)
    
    Print error log
    
    Co-authored-by: xiaoyu <xi...@apache.org>
    Co-authored-by: moremind <he...@apache.org>
---
 .../apache/shenyu/client/core/shutdown/ShenyuClientShutdownHook.java   | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/shenyu-client/shenyu-client-core/src/main/java/org/apache/shenyu/client/core/shutdown/ShenyuClientShutdownHook.java b/shenyu-client/shenyu-client-core/src/main/java/org/apache/shenyu/client/core/shutdown/ShenyuClientShutdownHook.java
index 8853b1b74..39b2b325f 100644
--- a/shenyu-client/shenyu-client-core/src/main/java/org/apache/shenyu/client/core/shutdown/ShenyuClientShutdownHook.java
+++ b/shenyu-client/shenyu-client-core/src/main/java/org/apache/shenyu/client/core/shutdown/ShenyuClientShutdownHook.java
@@ -115,7 +115,8 @@ public class ShenyuClientShutdownHook {
                         LOG.info("sleep {}ms", shutdownWaitTime);
                         try {
                             TimeUnit.MILLISECONDS.sleep(shutdownWaitTime);
-                        } catch (InterruptedException ignore) {
+                        } catch (InterruptedException ex) {
+                            LOG.error(ex.getMessage(), ex);
                         }
                         hook.run();
                     }, hook.getName());