Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions java/src/org/openqa/selenium/internal/Debug.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@

package org.openqa.selenium.internal;

import java.lang.management.ManagementFactory;
import java.util.logging.Level;

/** Used to provide information about whether Selenium is running under debug mode. */
Expand All @@ -26,13 +25,10 @@ public class Debug {
private static final boolean IS_DEBUG;

static {
boolean debugFlag =
ManagementFactory.getRuntimeMXBean().getInputArguments().stream()
.anyMatch(str -> str.contains("-agentlib:jdwp"));
boolean simpleProperty = Boolean.getBoolean("selenium.debug");
boolean longerProperty = Boolean.getBoolean("selenium.webdriver.verbose");

IS_DEBUG = debugFlag || simpleProperty || longerProperty;
IS_DEBUG = simpleProperty || longerProperty;
}

private Debug() {
Expand Down