Skip to content

Commit

Permalink
Make debug not require an extra parameter
Browse files Browse the repository at this point in the history
If someone asks for `debug`, they probably want to
debug their app.
  • Loading branch information
shs96c committed Apr 24, 2017
1 parent e181e41 commit 8f325df
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

package org.openqa.grid.internal.utils.configuration;

import com.google.common.annotations.VisibleForTesting;
import com.google.gson.GsonBuilder;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
Expand All @@ -43,26 +44,31 @@ public class StandaloneConfiguration {
/**
* Default client timeout
*/
@VisibleForTesting
static final Integer DEFAULT_TIMEOUT = 1800;

/**
* Default browser timeout
*/
@VisibleForTesting
static final Integer DEFAULT_BROWSER_TIMEOUT = 0;

/**
* Default standalone role
*/
@VisibleForTesting
static final String DEFAULT_ROLE = "standalone";

/**
* Default standalone port
*/
@VisibleForTesting
static final Integer DEFAULT_PORT = 4444;

/**
* Default state of LogeLevel.FINE log output toggle
*/
@VisibleForTesting
static final Boolean DEFAULT_DEBUG_TOGGLE = false;

/*
Expand Down Expand Up @@ -140,8 +146,7 @@ public class StandaloneConfiguration {
@Expose
@Parameter(
names = "-debug",
description = "<Boolean> : enables LogLevel.FINE.",
arity = 1
description = "<Boolean> : enables LogLevel.FINE."
)
public Boolean debug = DEFAULT_DEBUG_TOGGLE;

Expand Down

0 comments on commit 8f325df

Please sign in to comment.