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
()
| 79 | * @return {@code true} if {@code SE_DEBUG} is enabled |
| 80 | */ |
| 81 | public static boolean isDebugAll() { |
| 82 | boolean everything = Boolean.parseBoolean(System.getenv("SE_DEBUG")); |
| 83 | if (everything && DEBUG_WARNING_LOGGED.compareAndSet(false, true)) { |
| 84 | String warn = |
| 85 | "WARNING: Environment Variable `SE_DEBUG` is set; Selenium is forcing verbose logging" |
| 86 | + " which may override user-specified settings."; |
| 87 | System.err.println(warn); |
| 88 | } |
| 89 | return everything; |
| 90 | } |
| 91 | |
| 92 | /** |
| 93 | * Shows Selenium's diagnostic log records on the console if debugging is enabled. |