Returns the level asked for by the debug switches, or null when none is enabled.
()
| 148 | |
| 149 | /** Returns the level asked for by the debug switches, or {@code null} when none is enabled. */ |
| 150 | private static @Nullable Level requestedLevel() { |
| 151 | // SE_DEBUG is checked first because it is the broader switch. |
| 152 | if (isDebugAll()) { |
| 153 | return SE_DEBUG_LEVEL; |
| 154 | } |
| 155 | if (isDebugging()) { |
| 156 | return DEBUG_PROPERTY_LEVEL; |
| 157 | } |
| 158 | return null; |
| 159 | } |
| 160 | |
| 161 | private static void enable(Level minimum) { |
| 162 | Level level = effectiveLevel(SELENIUM_LOGGER); |
no test coverage detected