Skip to content

Commit 5c512e3

Browse files
committed
reduced verbosity
1 parent 02c8c2f commit 5c512e3

File tree

4 files changed

+8
-20
lines changed

4 files changed

+8
-20
lines changed

src/main/java/com/arangodb/internal/InternalArangoDBBuilder.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,10 +195,10 @@ protected void setSerializer(final ArangoSerialization serializer) {
195195
protected HostResolver createHostResolver(final Collection<Host> hosts, final int maxConnections,final ConnectionFactory connectionFactory) {
196196

197197
if(acquireHostList) {
198-
LOGGER.info("acquireHostList -> Use ExtendedHostResolver");
198+
LOGGER.debug("acquireHostList -> Use ExtendedHostResolver");
199199
return new ExtendedHostResolver(new ArrayList<Host>(hosts), maxConnections, connectionFactory);
200200
} else {
201-
LOGGER.info("Use SimpleHostResolver");
201+
LOGGER.debug("Use SimpleHostResolver");
202202
return new SimpleHostResolver(new ArrayList<Host>(hosts));
203203
}
204204

src/main/java/com/arangodb/internal/net/ExtendedHostResolver.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public HostSet resolve(final boolean initial, final boolean closeConnections) {
7070
lastUpdate = System.currentTimeMillis();
7171

7272
final Collection<String> endpoints = resolver.resolve(closeConnections);
73-
LOGGER.info("Resolve " + endpoints.size() + " Endpoints");
73+
LOGGER.debug("Resolve " + endpoints.size() + " Endpoints");
7474
LOGGER.debug("Endpoints " + Arrays.deepToString(endpoints.toArray()));
7575

7676
if (!endpoints.isEmpty()) {

src/main/java/com/arangodb/internal/net/HostSet.java

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
import org.slf4j.LoggerFactory;
1010

1111
public class HostSet {
12-
1312
private static final Logger LOGGER = LoggerFactory.getLogger(HostSet.class);
1413

1514
private ArrayList<Host> hosts = new ArrayList<Host>();
@@ -32,22 +31,19 @@ public List<Host> getHostsList() {
3231
}
3332

3433
public void addHost(Host newHost) {
35-
3634
if(hosts.contains(newHost)) {
3735
LOGGER.debug("Host" + newHost + " allready in Set");
3836
} else {
3937
hosts.add(newHost);
40-
LOGGER.info("Added Host " + newHost + " - now " + hosts.size() + " Hosts in List");
38+
LOGGER.debug("Added Host " + newHost + " - now " + hosts.size() + " Hosts in List");
4139
}
4240

4341
}
4442

4543
public void close() {
46-
47-
LOGGER.info("Close all Hosts in Set");
44+
LOGGER.debug("Close all Hosts in Set");
4845

4946
for (Host host : hosts) {
50-
5147
try {
5248

5349
LOGGER.debug("Try to close Host " + host);
@@ -56,18 +52,13 @@ public void close() {
5652
} catch (IOException e) {
5753
LOGGER.warn("Error during closing the Host " + host, e);
5854
}
59-
6055
}
61-
6256
}
6357

6458
public void clear() {
65-
66-
LOGGER.info("Clear all Hosts in Set");
59+
LOGGER.debug("Clear all Hosts in Set");
6760

6861
close();
6962
hosts.clear();
70-
7163
}
72-
7364
}

src/main/java/com/arangodb/internal/velocystream/internal/VstConnection.java

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@
5353
*
5454
*/
5555
public abstract class VstConnection implements Connection {
56-
5756
private static final Logger LOGGER = LoggerFactory.getLogger(VstConnection.class);
5857
private static final byte[] PROTOCOL_HEADER = "VST/1.0\r\n\r\n".getBytes();
5958

@@ -87,7 +86,6 @@ public boolean isOpen() {
8786
}
8887

8988
public synchronized void open() throws IOException {
90-
9189
if (isOpen()) {
9290
return;
9391
}
@@ -124,8 +122,7 @@ public synchronized void open() throws IOException {
124122
executor.submit(new Callable<Void>() {
125123
@Override
126124
public Void call() throws Exception {
127-
128-
LOGGER.info("Start Callable for " + this.toString());
125+
LOGGER.debug("Start Callable for " + this.toString());
129126

130127
final long openTime = new Date().getTime();
131128
final Long ttlTime = ttl != null ? openTime + ttl : null;
@@ -156,7 +153,7 @@ public Void call() throws Exception {
156153
}
157154
}
158155

159-
LOGGER.info("Stop Callable for " + this.toString());
156+
LOGGER.debug("Stop Callable for " + this.toString());
160157

161158
return null;
162159
}

0 commit comments

Comments
 (0)