Skip to content

Commit

Permalink
Fix issue with lager startup
Browse files Browse the repository at this point in the history
  • Loading branch information
kellymclaughlin committed Aug 5, 2014
1 parent 2bf65de commit 2c8bc6c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/riak_test_escript.erl
Original file line number Diff line number Diff line change
Expand Up @@ -204,12 +204,13 @@ ensure_dir(Dir) ->

lager_setup(undefined) ->
set_lager_env(rt_config:get(lager_level, info)),
load_and_start(lager);
lager:start();
lager_setup(_) ->
set_lager_env(notice),
load_and_start(lager).
lager:start().

set_lager_env(LagerLevel) ->
application:load(lager),
HandlerConfig = [{lager_console_backend, LagerLevel},
{lager_file_backend, [{file, "log/test.log"},
{level, LagerLevel}]}],
Expand Down

0 comments on commit 2c8bc6c

Please sign in to comment.