Skip to content

Commit 1142aae

Browse files
ekueflerlukeis
authored andcommitted
Reduce verbosity of several logging statements from INFO to FINE. (#2260)
These statements become extremely verbose in busy clusters, as they appear to be printed once for each test crossed with each node when the cluster is full. So for my cluster which runs more than 50 nodes and regularly sees >200 tests submitted at once, these can print tens of thousands of log lines per second, adding up to gigabytes of logging per day.
1 parent 44dc930 commit 1142aae

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

java/server/src/org/openqa/grid/internal/BaseRemoteProxy.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -330,15 +330,15 @@ public URL getRemoteHost() {
330330
}
331331

332332
public TestSession getNewSession(Map<String, Object> requestedCapability) {
333-
log.info("Trying to create a new session on node " + this);
333+
log.fine("Trying to create a new session on node " + this);
334334

335335
if (!hasCapability(requestedCapability)) {
336-
log.info("Node " + this + " has no matching capability");
336+
log.fine("Node " + this + " has no matching capability");
337337
return null;
338338
}
339339
// any slot left at all?
340340
if (getTotalUsed() >= config.maxSession) {
341-
log.info("Node " + this + " has no free slots");
341+
log.fine("Node " + this + " has no free slots");
342342
return null;
343343
}
344344
// any slot left for the given app ?

java/server/src/org/openqa/grid/internal/ProxySet.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ public TestSession getNewSession(Map<String, Object> desiredCapabilities) {
148148
// test running, to avoid putting all the load of the first
149149
// proxies.
150150
List<RemoteProxy> sorted = getSorted();
151-
log.info("Available nodes: " + sorted);
151+
log.fine("Available nodes: " + sorted);
152152

153153
for (RemoteProxy proxy : sorted) {
154154
TestSession session = proxy.getNewSession(desiredCapabilities);

0 commit comments

Comments
 (0)