We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents eba2f15 + 80a00b5 commit 7a5deccCopy full SHA for 7a5decc
1 file changed
src/basho_bench.erl
@@ -56,7 +56,7 @@ main(Args) ->
56
basho_bench_config:set(test_id, BenchName),
57
58
application:load(lager),
59
- ConsoleLagerLevel = basho_bench_config:get(lager_level, debug),
+ ConsoleLagerLevel = basho_bench_config:get(log_level, debug),
60
ErrorLog = filename:join([TestDir, "error.log"]),
61
ConsoleLog = filename:join([TestDir, "console.log"]),
62
CrashLog = filename:join([TestDir, "crash.log"]),
@@ -73,6 +73,10 @@ main(Args) ->
73
%% show.
74
basho_bench_config:load(Configs),
75
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
+
80
%% Init code path
81
add_code_paths(basho_bench_config:get(code_paths, [])),
82
0 commit comments