forked from hugegraph/hugegraph-sync
fix: construct PdMetaDriver and pd-store log confs
This commit is contained in:
parent
bc9c1e7ac9
commit
7b14857828
|
|
@ -127,8 +127,9 @@
|
|||
<appender-ref ref="file"/>
|
||||
</logger>
|
||||
<!-- Use mixed async way to output logs -->
|
||||
<AsyncLogger name="org.apache.hugegraph" level="INFO" additivity="false">
|
||||
<logger name="org.apache.hugegraph" level="INFO" additivity="false">
|
||||
<appender-ref ref="file"/>
|
||||
</AsyncLogger>
|
||||
<appender-ref ref="console"/>
|
||||
</logger>
|
||||
</loggers>
|
||||
</configuration>
|
||||
|
|
|
|||
|
|
@ -164,8 +164,9 @@ public class MetaManager {
|
|||
break;
|
||||
case PD:
|
||||
assert args.length > 0;
|
||||
String pdPeer = String.join(",", (List<String>) args[0]);
|
||||
this.metaDriver = new PdMetaDriver(pdPeer);
|
||||
// FIXME: assume pd.peers is urls separated by commas in a string
|
||||
// like `127.0.0.1:8686,127.0.0.1:8687,127.0.0.1:8688`
|
||||
this.metaDriver = new PdMetaDriver((String) args[0]);
|
||||
break;
|
||||
default:
|
||||
throw new AssertionError(String.format(
|
||||
|
|
|
|||
|
|
@ -129,8 +129,9 @@
|
|||
<appender-ref ref="file"/>
|
||||
</logger>
|
||||
<!-- Use mixed async way to output logs -->
|
||||
<AsyncLogger name="org.apache.hugegraph" level="INFO" additivity="false">
|
||||
<logger name="org.apache.hugegraph" level="INFO" additivity="false">
|
||||
<appender-ref ref="file"/>
|
||||
</AsyncLogger>
|
||||
<appender-ref ref="console"/>
|
||||
</logger>
|
||||
</loggers>
|
||||
</configuration>
|
||||
|
|
|
|||
Loading…
Reference in New Issue