Skip to content

Commit 17b5d4b

Browse files
committed
Stop polluting the log with stacktraces. Fixes issue 7460
1 parent e9c80f7 commit 17b5d4b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

java/server/src/org/openqa/selenium/remote/server/DefaultDriverSessions.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,9 @@ private void registerDriver(Capabilities caps, String className) {
9999
try {
100100
registerDriver(caps, Class.forName(className).asSubclass(WebDriver.class));
101101
} catch (ClassNotFoundException e) {
102-
log.log(Level.INFO, "Unable to register driver with className " + className + " - not be able to create due " + e.getMessage(), e);
102+
log.log(Level.INFO, "Unable to register driver with className " + className + " due to ClassNotFoundException");
103103
} catch (NoClassDefFoundError e) {
104-
log.log(Level.WARNING, "Unable to register driver with className " + className + " - dependency missing due " + e.getMessage(), e);
104+
log.log(Level.WARNING, "Unable to register driver with className " + className + " due to NoClassDefFoundError");
105105
}
106106
}
107107

0 commit comments

Comments
 (0)