Selaa lähdekoodia

Some cleanup

pull/902/head
Heinz N. Gies 9 vuotta sitten
vanhempi
commit
949eafd899
1 muutettua tiedostoa jossa 11 lisäystä ja 8 poistoa
  1. +11
    -8
      src/rebar_log.erl

+ 11
- 8
src/rebar_log.erl Näytä tiedosto

@ -43,6 +43,16 @@
%% Public API %% Public API
%% =================================================================== %% ===================================================================
intensity() ->
case os:getenv("REBAR_COLOR") of
"high" ->
high;
"low" ->
low;
_ ->
?DFLT_INTENSITY
end.
init(Caller, Verbosity) -> init(Caller, Verbosity) ->
Level = case valid_level(Verbosity) of Level = case valid_level(Verbosity) of
?ERROR_LEVEL -> error; ?ERROR_LEVEL -> error;
@ -50,14 +60,7 @@ init(Caller, Verbosity) ->
?INFO_LEVEL -> info; ?INFO_LEVEL -> info;
?DEBUG_LEVEL -> debug ?DEBUG_LEVEL -> debug
end, end,
Intensity = case os:getenv("REBAR_COLOR") of
"high" ->
high;
"low" ->
low;
_ ->
?DFLT_INTENSITY
end,
Intensity = intensity(),
Log = ec_cmd_log:new(Level, Caller, Intensity), Log = ec_cmd_log:new(Level, Caller, Intensity),
application:set_env(rebar, log, Log). application:set_env(rebar, log, Log).

Ladataan…
Peruuta
Tallenna