Returns the level asked for by the debug switches, or null when none is enabled.
()
| 135 | |
| 136 | /** Returns the level asked for by the debug switches, or {@code null} when none is enabled. */ |
| 137 | private static @Nullable Level requestedLevel() { |
| 138 | // SE_DEBUG is checked first because it is the broader switch. |
| 139 | if (isDebugAll()) { |
| 140 | return SE_DEBUG_LEVEL; |
| 141 | } |
| 142 | if (isDebugging()) { |
| 143 | return DEBUG_PROPERTY_LEVEL; |
| 144 | } |
| 145 | return null; |
| 146 | } |
| 147 | |
| 148 | private static void enable(Level minimum) { |
| 149 | Level level = effectiveLevel(SELENIUM_LOGGER); |
no test coverage detected