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 d11a2505ee [type:fix] Fix the issue of potential OutOfMemoryError in
the logging plugin developed based on logging-common. (#5864)
d11a2505ee is described below
commit d11a2505ee1877f4d8a3456227dd3d64feaab438
Author: mxy <[email protected]>
AuthorDate: Wed Dec 25 18:47:19 2024 +0800
[type:fix] Fix the issue of potential OutOfMemoryError in the logging
plugin developed based on logging-common. (#5864)
---
.../shenyu/plugin/logging/common/collector/AbstractLogCollector.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git
a/shenyu-plugin/shenyu-plugin-logging/shenyu-plugin-logging-common/src/main/java/org/apache/shenyu/plugin/logging/common/collector/AbstractLogCollector.java
b/shenyu-plugin/shenyu-plugin-logging/shenyu-plugin-logging-common/src/main/java/org/apache/shenyu/plugin/logging/common/collector/AbstractLogCollector.java
index b29a6d6155..33e3341f69 100644
---
a/shenyu-plugin/shenyu-plugin-logging/shenyu-plugin-logging-common/src/main/java/org/apache/shenyu/plugin/logging/common/collector/AbstractLogCollector.java
+++
b/shenyu-plugin/shenyu-plugin-logging/shenyu-plugin-logging-common/src/main/java/org/apache/shenyu/plugin/logging/common/collector/AbstractLogCollector.java
@@ -114,8 +114,8 @@ public abstract class AbstractLogCollector<T extends
AbstractLogConsumeClient<?,
} else {
ThreadUtils.sleep(TimeUnit.MILLISECONDS,
diffTimeMSForPush);
}
- } catch (Exception e) {
- LOG.error("DefaultLogCollector collect log error", e);
+ } catch (Throwable t) {
+ LOG.error("DefaultLogCollector collect log error", t);
ThreadUtils.sleep(TimeUnit.MILLISECONDS, diffTimeMSForPush);
}
}