25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-22 16:20:52 +01:00

Merge pull request #1677 from getong/catch_lager_crash_log_not_run

lager_crash_log in some cases not run, catch it
This commit is contained in:
Evgeny Khramtsov 2017-04-17 09:44:00 +04:00 committed by GitHub
commit c97aade33e

View File

@ -160,7 +160,7 @@ reopen_log() ->
%% @spec () -> ok
rotate_log() ->
lager_crash_log ! rotate,
catch lager_crash_log ! rotate,
lists:foreach(
fun({lager_file_backend, File}) ->
whereis(lager_event) ! {rotate, File};