diff options
Diffstat (limited to 'src/rebar.erl')
-rw-r--r-- | src/rebar.erl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rebar.erl b/src/rebar.erl index 4189b91..8b9758f 100644 --- a/src/rebar.erl +++ b/src/rebar.erl @@ -70,6 +70,7 @@ main(Args) -> %% Erlang-API entry point run(BaseConfig, Commands) -> _ = application:load(rebar), + ok = rebar_log:init(api, BaseConfig), run_aux(BaseConfig, Commands). %% ==================================================================== @@ -141,7 +142,7 @@ init_config({Options, _NonOptArgs}) -> GlobalConfig2 = set_log_level(GlobalConfig1, Options), %% Initialize logging system - ok = rebar_log:init(GlobalConfig2), + ok = rebar_log:init(command_line, GlobalConfig2), BaseConfig = rebar_config:base_config(GlobalConfig2), |