MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / requestedLevel

Method requestedLevel

java/src/org/openqa/selenium/internal/Debug.java:137–146  ·  view source on GitHub ↗

Returns the level asked for by the debug switches, or null when none is enabled.

()

Source from the content-addressed store, hash-verified

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);

Callers 1

configureLoggerMethod · 0.95

Calls 2

isDebugAllMethod · 0.95
isDebuggingMethod · 0.95

Tested by

no test coverage detected