Skip to content

Commit

Permalink
Adding a new selenium server option -logLongForm to log more details …
Browse files Browse the repository at this point in the history
…to the console. Fixes issue 6645
  • Loading branch information
barancev committed Jul 1, 2014
1 parent 6c14f14 commit c813596
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions java/server/src/org/openqa/grid/selenium/GridLauncher.java
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,11 @@ public static void main(String[] args) throws Exception {
throw new RuntimeException(e);
}
} else {
boolean logLongForm = helper.isParamPresent("-logLongForm");
for (Handler handler : Logger.getLogger("").getHandlers()) {
if (handler instanceof ConsoleHandler) {
handler.setLevel(logLevel);
handler.setFormatter(new TerseFormatter(logLongForm));
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,9 @@ public static void usage(String msg) {
INDENT,
"-trustAllSSLCertificates: Forces the Selenium proxy to trust all SSL certificates. This doesn't work in browsers that don't use the Selenium proxy.");
printWrappedLine(INDENT,
"-log <logFileName>: writes lots of debug information out to a log file");
"-log <logFileName>: writes lots of debug information out to a log file and disables logging to console");
printWrappedLine(INDENT,
"-logLongForm: writes information out to console in long format (for debugging purpose)");
printWrappedLine(
INDENT,
"-htmlSuite <browser> <startURL> <suiteFile> <resultFile>: Run a single HTML Selenese (Selenium Core) suite and then exit immediately, using the specified browser (e.g. \"*firefox\") on the specified URL (e.g. \"http://www.google.com\"). You need to specify the absolute path to the HTML test suite as well as the path to the HTML results file we'll generate.");
Expand Down

0 comments on commit c813596

Please sign in to comment.