mirror of
https://github.com/processone/ejabberd.git
synced 2024-10-31 15:21:38 +01:00
lager_crash_log in some cases not run, catch it
This commit is contained in:
parent
f496d22074
commit
ab751d290a
@ -160,7 +160,7 @@ reopen_log() ->
|
|||||||
|
|
||||||
%% @spec () -> ok
|
%% @spec () -> ok
|
||||||
rotate_log() ->
|
rotate_log() ->
|
||||||
lager_crash_log ! rotate,
|
catch lager_crash_log ! rotate,
|
||||||
lists:foreach(
|
lists:foreach(
|
||||||
fun({lager_file_backend, File}) ->
|
fun({lager_file_backend, File}) ->
|
||||||
whereis(lager_event) ! {rotate, File};
|
whereis(lager_event) ! {rotate, File};
|
||||||
|
Loading…
Reference in New Issue
Block a user