You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hugegraph.apache.org by zh...@apache.org on 2022/11/22 05:12:14 UTC
[incubator-hugegraph] branch improve_log_shutdown created (now cc0072647)
This is an automated email from the ASF dual-hosted git repository.
zhaocong pushed a change to branch improve_log_shutdown
in repository https://gitbox.apache.org/repos/asf/incubator-hugegraph.git
at cc0072647 Shutdown log when shutdown process improve RIGHT_MARGIN
This branch includes the following new commits:
new cc0072647 Shutdown log when shutdown process improve RIGHT_MARGIN
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
[incubator-hugegraph] 01/01: Shutdown log when shutdown process improve RIGHT_MARGIN
Posted by zh...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
zhaocong pushed a commit to branch improve_log_shutdown
in repository https://gitbox.apache.org/repos/asf/incubator-hugegraph.git
commit cc0072647fd4d96f1fc9d1a422c8f82659036e73
Author: coderzc <zh...@apache.org>
AuthorDate: Tue Nov 22 13:11:59 2022 +0800
Shutdown log when shutdown process
improve RIGHT_MARGIN
---
.../src/main/java/com/baidu/hugegraph/dist/HugeGraphServer.java | 2 ++
hugegraph-style.xml | 4 ++--
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/hugegraph-dist/src/main/java/com/baidu/hugegraph/dist/HugeGraphServer.java b/hugegraph-dist/src/main/java/com/baidu/hugegraph/dist/HugeGraphServer.java
index 02a8583c6..3341afec7 100644
--- a/hugegraph-dist/src/main/java/com/baidu/hugegraph/dist/HugeGraphServer.java
+++ b/hugegraph-dist/src/main/java/com/baidu/hugegraph/dist/HugeGraphServer.java
@@ -21,6 +21,7 @@ package com.baidu.hugegraph.dist;
import java.util.concurrent.CompletableFuture;
+import org.apache.logging.log4j.LogManager;
import org.apache.tinkerpop.gremlin.server.GremlinServer;
import org.slf4j.Logger;
@@ -139,6 +140,7 @@ public class HugeGraphServer {
server.stop();
LOG.info("HugeGraphServer stopped");
+ LogManager.shutdown();
serverStopped.complete(null);
}, "hugegraph-server-shutdown"));
// Wait for server-shutdown and server-stopped
diff --git a/hugegraph-style.xml b/hugegraph-style.xml
index 7b4523951..440486bab 100644
--- a/hugegraph-style.xml
+++ b/hugegraph-style.xml
@@ -16,9 +16,9 @@
-->
<code_scheme name="hugegraph-style" version="173">
<option name="LINE_SEPARATOR" value="
" />
- <option name="RIGHT_MARGIN" value="80" />
+ <option name="RIGHT_MARGIN" value="100" />
<option name="WRAP_WHEN_TYPING_REACHES_RIGHT_MARGIN" value="true" />
- <option name="SOFT_MARGINS" value="80" />
+ <option name="SOFT_MARGINS" value="100" />
<JavaCodeStyleSettings>
<option name="ANNOTATION_PARAMETER_WRAP" value="1" />
<option name="ALIGN_MULTILINE_ANNOTATION_PARAMETERS" value="true" />