From 7475909c0d015693cc9e638274a2b3672fc75dd4 Mon Sep 17 00:00:00 2001 From: tomsun28 Date: Sun, 19 May 2024 07:31:57 +0800 Subject: [PATCH 1/2] [doc] update home doc Signed-off-by: tomsun28 --- home/docs/community/development.md | 2 +- home/docs/community/how-to-verify.md | 3 ++- .../current/community/development.md | 2 +- .../current/community/how-to-verify.md | 4 ++-- .../java/org/apache/hertzbeat/plugin/impl/DemoPluginImpl.java | 4 +++- 5 files changed, 9 insertions(+), 6 deletions(-) diff --git a/home/docs/community/development.md b/home/docs/community/development.md index 6bc9544a900..33d9dfad53f 100644 --- a/home/docs/community/development.md +++ b/home/docs/community/development.md @@ -23,7 +23,7 @@ sidebar_label: Development ### Frontend start -1. Need `Node Yarn` Environment, Make sure `Node.js >= 18` +1. Need `Node Yarn` Environment, Make sure `20 > Node.js >= 18` 2. Cd to the `web-app` directory: `cd web-app` diff --git a/home/docs/community/how-to-verify.md b/home/docs/community/how-to-verify.md index b949f07494f..41c3341b59e 100644 --- a/home/docs/community/how-to-verify.md +++ b/home/docs/community/how-to-verify.md @@ -8,6 +8,8 @@ sidebar_position: 4 For detailed check list, please refer to the official [check list](https://cwiki.apache.org/confluence/display/INCUBATOR/Incubator+Release+Checklist) +Version content accessible in browser https://dist.apache.org/repos/dist/dev/incubator/hertzbeat/ + ## 1. Download the candidate version Download the candidate version to be released to the local environment Need to rely on gpg tool, if not, it is recommended to install `gpg2`. @@ -119,7 +121,6 @@ check as follows: - [ ] Only text files exist, not binary files - [ ] All files have ASF license at the beginning - [ ] Able to compile correctly -- [ ] Check for extra files or folders, such as empty folders, etc. - [ ] ..... diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/community/development.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/community/development.md index 2bfebd21d2f..ec0427f7dfc 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/community/development.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/community/development.md @@ -22,7 +22,7 @@ sidebar_label: 运行编译 ### 前端启动 -1. 需要 `nodejs yarn` 环境, 版本要求 `Node.js >= 18` +1. 需要 `nodejs yarn` 环境, 版本要求 `20 > Node.js >= 18` 2. 进入 `web-app` 目录: `cd web-app` diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/community/how-to-verify.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/community/how-to-verify.md index c183ff44409..ee4f9563c83 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/community/how-to-verify.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/community/how-to-verify.md @@ -7,8 +7,9 @@ sidebar_position: 4 详细检查列表请参考官方的[check list](https://cwiki.apache.org/confluence/display/INCUBATOR/Incubator+Release+Checklist) -## 1. 下载候选版本到本地 +在浏览器中可访问版本内容 https://dist.apache.org/repos/dist/dev/incubator/hertzbeat/ +## 1. 下载候选版本到本地 > 需要依赖gpg工具,如果没有,建议安装gpg2 @@ -143,7 +144,6 @@ cd apache-hertzbeat-${release_version}-incubating-src - [ ] 只存在文本文件,不存在二进制文件 - [ ] 所有文件的开头都有ASF许可证 - [ ] 能够正确编译 -- [ ] 检查是否有多余文件或文件夹,例如空文件夹等 - [ ] ..... 参考: https://apache.org/legal/resolved.html diff --git a/plugin/src/main/java/org/apache/hertzbeat/plugin/impl/DemoPluginImpl.java b/plugin/src/main/java/org/apache/hertzbeat/plugin/impl/DemoPluginImpl.java index 94f90664dee..4b2b4fc10ea 100644 --- a/plugin/src/main/java/org/apache/hertzbeat/plugin/impl/DemoPluginImpl.java +++ b/plugin/src/main/java/org/apache/hertzbeat/plugin/impl/DemoPluginImpl.java @@ -32,6 +32,8 @@ public class DemoPluginImpl implements Plugin { */ @Override public void alert(Alert alert) { - log.info("DemoPluginImpl alert: {}", alert); + if (log.isDebugEnabled()) { + log.debug("DemoPluginImpl alert: {}", alert); + } } } From 43b3e211be64e4e9d7ed947a025b9aa83910e506 Mon Sep 17 00:00:00 2001 From: tomsun28 Date: Mon, 20 May 2024 14:01:38 +0800 Subject: [PATCH 2/2] [doc] update home doc Signed-off-by: tomsun28 --- home/docs/community/development.md | 2 +- .../current/community/development.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/home/docs/community/development.md b/home/docs/community/development.md index 33d9dfad53f..6bc9544a900 100644 --- a/home/docs/community/development.md +++ b/home/docs/community/development.md @@ -23,7 +23,7 @@ sidebar_label: Development ### Frontend start -1. Need `Node Yarn` Environment, Make sure `20 > Node.js >= 18` +1. Need `Node Yarn` Environment, Make sure `Node.js >= 18` 2. Cd to the `web-app` directory: `cd web-app` diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/community/development.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/community/development.md index ec0427f7dfc..2bfebd21d2f 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/community/development.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/community/development.md @@ -22,7 +22,7 @@ sidebar_label: 运行编译 ### 前端启动 -1. 需要 `nodejs yarn` 环境, 版本要求 `20 > Node.js >= 18` +1. 需要 `nodejs yarn` 环境, 版本要求 `Node.js >= 18` 2. 进入 `web-app` 目录: `cd web-app`