lager_crash_log in some cases not run, catch it

This commit is contained in:
getong 2017-04-17 12:07:23 +08:00
parent f496d22074
commit ab751d290a
1 changed files with 1 additions and 1 deletions

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};