Set high water mark in lager for all backends

This commit is contained in:
Paweł Chmielowski 2017-07-04 20:37:25 +02:00 committed by Christophe Romain
parent 3ca62a797a
commit 5c48ba4609
1 changed files with 3 additions and 0 deletions

View File

@ -151,6 +151,9 @@ do_start() ->
application:set_env(lager, crash_log_size, LogRotateSize),
application:set_env(lager, crash_log_count, LogRotateCount),
ejabberd:start_app(lager),
lists:foreach(fun(Handler) ->
lager:set_loghwm(Handler, LogRateLimit)
end, gen_event:which_handlers(lager_event)),
ok.
%% @spec () -> ok