Detaches Selenium's handler and switches debug logging off again. Only for tests.
()
| 182 | |
| 183 | /** Detaches Selenium's handler and switches debug logging off again. Only for tests. */ |
| 184 | static void resetForTesting() { |
| 185 | synchronized (LOCK) { |
| 186 | Handler handler = installedHandler; |
| 187 | if (handler != null) { |
| 188 | SELENIUM_LOGGER.removeHandler(handler); |
| 189 | handler.close(); |
| 190 | installedHandler = null; |
| 191 | } |
| 192 | enabledLevel = null; |
| 193 | } |
| 194 | } |
| 195 | } |