Skip to content

Commit

Permalink
Making selenium server less verbose by default
Browse files Browse the repository at this point in the history
  • Loading branch information
barancev committed Feb 9, 2018
1 parent 5bc5690 commit 78bece3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public void handle(HttpRequest req, HttpResponse resp) throws IOException {
Writer out = new OutputStreamWriter(os, UTF_8)) {
CharStreams.copy(in, out);
}
LOG.info("To upstream: " + logWriter.toString());
LOG.fine("To upstream: " + logWriter.toString());
}

resp.setStatus(connection.getResponseCode());
Expand All @@ -129,7 +129,7 @@ public void handle(HttpRequest req, HttpResponse resp) throws IOException {
String charSet = connection.getContentEncoding() != null ? connection.getContentEncoding() : UTF_8.name();
try (Reader reader = new InputStreamReader(in, charSet)) {
String content = CharStreams.toString(reader);
LOG.info("To downstream: " + content);
LOG.fine("To downstream: " + content);
resp.setContent(content.getBytes(charSet));
} finally {
in.close();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ public ServletInputStream getInputStream() throws IOException {
private void handle(HttpServletRequest req, HttpServletResponse resp) {
CommandHandler handler = handlers.match(req);

LOG.info("Found handler: " + handler);
LOG.fine("Found handler: " + handler);

boolean invalidateSession =
handler instanceof ActiveSession &&
Expand Down Expand Up @@ -233,7 +233,7 @@ private void handle(HttpServletRequest req, HttpServletResponse resp) {

Thread.currentThread().setName(pathInfo);
}
LOG.info(String.format(
LOG.fine(String.format(
"%s: Executing %s on %s (handler: %s)",
Thread.currentThread().getName(),
req.getMethod(),
Expand Down

0 comments on commit 78bece3

Please sign in to comment.