Returns whether the SE_DEBUG environment variable is set to true. The first time this returns true, a warning is printed to System.err. @return true if SE_DEBUG is enabled
()
| 92 | * @return {@code true} if {@code SE_DEBUG} is enabled |
| 93 | */ |
| 94 | public static boolean isDebugAll() { |
| 95 | boolean everything = Boolean.parseBoolean(System.getenv("SE_DEBUG")); |
| 96 | if (everything && DEBUG_WARNING_LOGGED.compareAndSet(false, true)) { |
| 97 | String warn = |
| 98 | "WARNING: Environment Variable `SE_DEBUG` is set; Selenium is forcing verbose logging" |
| 99 | + " which may override user-specified settings."; |
| 100 | System.err.println(warn); |
| 101 | } |
| 102 | return everything; |
| 103 | } |
| 104 | |
| 105 | /** |
| 106 | * Shows Selenium's diagnostic log records on the console if debugging is enabled. |