Github user Randgalt commented on a diff in the pull request:
https://github.com/apache/curator/pull/179#discussion_r93817403
--- Diff:
curator-framework/src/main/java/org/apache/curator/framework/imps/EnsembleTracker.java
---
@@ -179,13 +179,16 @@ public static String
configToConnectionString(QuorumVerifier data) throws Except
private void processConfigData(byte[] data) throws Exception
{
- log.info("New config event received: " + Arrays.toString(data));
-
Properties properties = new Properties();
properties.load(new ByteArrayInputStream(data));
QuorumMaj newConfig = new QuorumMaj(properties);
currentConfig.set(newConfig);
+ if ( log.isInfoEnabled() )
--- End diff --
Instead of this check you can do:
```java
log.info("New config event received: {}", properties.toString());
```
or
```java
log.info(String.format("New config event received: %s",
properties.toString()));
```
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---