Skip to content

Commit 80a00b5

Browse files
author
Péter Gömöri
committed
allow changing console log level from config files
1 parent f29e0e0 commit 80a00b5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/basho_bench.erl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,10 @@ main(Args) ->
7373
%% show.
7474
basho_bench_config:load(Configs),
7575

76+
%% Log level can be overriden by the config files
77+
CustomLagerLevel = basho_bench_config:get(log_level),
78+
lager:set_loglevel(lager_console_backend, CustomLagerLevel),
79+
7680
%% Init code path
7781
add_code_paths(basho_bench_config:get(code_paths, [])),
7882

0 commit comments

Comments
 (0)