mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-22 17:28:25 +01:00
Set high water mark in lager for all backends
This commit is contained in:
parent
3ca62a797a
commit
5c48ba4609
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user