Print actual servers from config and reformat
@@ -90,10 +90,10 @@ public class Reconfigurer extends AbstractComponent {
String joiningServers = String.join(",", newServers);
leavingServers = leavingServers.isEmpty() ? null : leavingServers;
joiningServers = joiningServers.isEmpty() ? null : joiningServers;
- log.log(Level.INFO, "Will reconfigure ZooKeeper cluster. Joining servers: " + joiningServers +
- ", leaving servers: " + leavingServers +
- ". Servers in active config:" + activeConfig.server() +
- ". Servers in new config:" + newConfig.server());
+ log.log(Level.INFO, "Will reconfigure ZooKeeper cluster. \nJoining servers: " + joiningServers +
+ "\nleaving servers: " + leavingServers +
+ "\nServers in active config:" + servers(activeConfig) +
+ "\nServers in new config:" + servers(newConfig));
String connectionSpec = localConnectionSpec(activeConfig);
Instant now = Instant.now();
Duration reconfigTimeout = reconfigTimeout(newServers.size());
