summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFred Hebert <mononcqc@ferd.ca>2016-06-18 20:34:48 -0700
committerGitHub <noreply@github.com>2016-06-18 20:34:48 -0700
commit4fd419528186cb399f5cbeec7051afa89e7bbf3c (patch)
tree1ffbb7b6c4dcd3c8d60f1f052d204ac845a60939 /src
parent4400ff5ce1e720966d0fc64f74611530bd68947b (diff)
parent391f3b3bec6283866fec8b16e128488de5205640 (diff)
Merge pull request #1242 from jonathn/unset-debug
Let DEBUG="" and QUIET="" mean disable the option
Diffstat (limited to 'src')
-rw-r--r--src/rebar3.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rebar3.erl b/src/rebar3.erl
index 82b4472..d3ea15f 100644
--- a/src/rebar3.erl
+++ b/src/rebar3.erl
@@ -221,10 +221,10 @@ set_options(State, {Options, NonOptArgs}) ->
%%
log_level() ->
case os:getenv("QUIET") of
- false ->
+ Q when Q == false; Q == "" ->
DefaultLevel = rebar_log:default_level(),
case os:getenv("DEBUG") of
- false ->
+ D when D == false; D == "" ->
DefaultLevel;
_ ->
DefaultLevel + 3