Skip to content

Commit

Permalink
Stop polluting the log with stacktraces. Fixes issue 7460
Browse files Browse the repository at this point in the history
  • Loading branch information
barancev committed Jun 10, 2014
1 parent e9c80f7 commit 17b5d4b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,9 @@ private void registerDriver(Capabilities caps, String className) {
try {
registerDriver(caps, Class.forName(className).asSubclass(WebDriver.class));
} catch (ClassNotFoundException e) {
log.log(Level.INFO, "Unable to register driver with className " + className + " - not be able to create due " + e.getMessage(), e);
log.log(Level.INFO, "Unable to register driver with className " + className + " due to ClassNotFoundException");
} catch (NoClassDefFoundError e) {
log.log(Level.WARNING, "Unable to register driver with className " + className + " - dependency missing due " + e.getMessage(), e);
log.log(Level.WARNING, "Unable to register driver with className " + className + " due to NoClassDefFoundError");
}
}

Expand Down

0 comments on commit 17b5d4b

Please sign in to comment.