Detaches Selenium's handler and switches debug logging off again. Only for tests.
()
| 195 | |
| 196 | /** Detaches Selenium's handler and switches debug logging off again. Only for tests. */ |
| 197 | static void resetForTesting() { |
| 198 | synchronized (LOCK) { |
| 199 | Handler handler = installedHandler; |
| 200 | if (handler != null) { |
| 201 | SELENIUM_LOGGER.removeHandler(handler); |
| 202 | handler.close(); |
| 203 | installedHandler = null; |
| 204 | } |
| 205 | enabledLevel = null; |
| 206 | } |
| 207 | } |
| 208 | } |