Skip to content

Commit

Permalink
Shutdown log when shutdown process (#2028)
Browse files Browse the repository at this point in the history
  • Loading branch information
coderzc authored Nov 22, 2022
1 parent aa0d8da commit 4c232a6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

import java.util.concurrent.CompletableFuture;

import org.apache.logging.log4j.LogManager;
import org.apache.tinkerpop.gremlin.server.GremlinServer;
import org.slf4j.Logger;

Expand Down Expand Up @@ -139,6 +140,7 @@ public static void main(String[] args) throws Exception {
server.stop();
LOG.info("HugeGraphServer stopped");

LogManager.shutdown();
serverStopped.complete(null);
}, "hugegraph-server-shutdown"));
// Wait for server-shutdown and server-stopped
Expand Down
4 changes: 2 additions & 2 deletions hugegraph-style.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
-->
<code_scheme name="hugegraph-style" version="173">
<option name="LINE_SEPARATOR" value="&#xA;" />
<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" />
Expand Down

0 comments on commit 4c232a6

Please sign in to comment.