diff --git a/hugegraph-core/src/main/java/com/baidu/hugegraph/auth/ResourceObject.java b/hugegraph-core/src/main/java/com/baidu/hugegraph/auth/ResourceObject.java index b3bb609e5d..bdff3b38d4 100644 --- a/hugegraph-core/src/main/java/com/baidu/hugegraph/auth/ResourceObject.java +++ b/hugegraph-core/src/main/java/com/baidu/hugegraph/auth/ResourceObject.java @@ -58,8 +58,17 @@ public String toString() { if (this.type.isAuth()) { operated = ((AuthElement) this.operated).idString(); } - return String.format("Resource{graph=%s,type=%s,operated=%s}", - this.graph, this.type, operated); + + String typeStr = this.type.toString(); + String operatedStr = operated.toString(); + int capacity = this.graph.length() + typeStr.length() + + operatedStr.length() + 36; + + StringBuilder sb = new StringBuilder(capacity); + return sb.append("Resource{graph=").append(this.graph) + .append(",type=").append(typeStr) + .append(",operated=").append(operatedStr) + .append("}").toString(); } public static ResourceObject of(String graph, diff --git a/hugegraph-dist/src/assembly/static/conf/log4j2.xml b/hugegraph-dist/src/assembly/static/conf/log4j2.xml index 07621ed182..83e0598e1c 100644 --- a/hugegraph-dist/src/assembly/static/conf/log4j2.xml +++ b/hugegraph-dist/src/assembly/static/conf/log4j2.xml @@ -7,13 +7,26 @@ - + + - + + + + + + + + + + @@ -39,8 +52,12 @@ - + + - + + + + diff --git a/hugegraph-dist/src/main/resources/log4j2.xml b/hugegraph-dist/src/main/resources/log4j2.xml index 10f10c7662..39971f2f0a 100644 --- a/hugegraph-dist/src/main/resources/log4j2.xml +++ b/hugegraph-dist/src/main/resources/log4j2.xml @@ -7,13 +7,26 @@ - + + - + + + + + + + + + + @@ -47,9 +60,14 @@ - + + - + + + + + diff --git a/hugegraph-example/src/main/resources/log4j2.xml b/hugegraph-example/src/main/resources/log4j2.xml index 5a705332ff..84511f69c4 100644 --- a/hugegraph-example/src/main/resources/log4j2.xml +++ b/hugegraph-example/src/main/resources/log4j2.xml @@ -7,13 +7,26 @@ - + + - + + + + + + + + + + @@ -47,9 +60,14 @@ - + + - + + + + + diff --git a/hugegraph-test/src/main/resources/log4j2.xml b/hugegraph-test/src/main/resources/log4j2.xml index 5881345a7e..64fb5180b1 100644 --- a/hugegraph-test/src/main/resources/log4j2.xml +++ b/hugegraph-test/src/main/resources/log4j2.xml @@ -7,13 +7,26 @@ - + + - + + + + + + + + + + @@ -47,9 +60,14 @@ - + + - + + + + +