24
1
mirror of https://github.com/processone/ejabberd.git synced 2024-06-02 21:17:12 +02:00

Stop SASL application in ejabberd_logger:flush()

This commit is contained in:
Evgeny Khramtsov 2019-10-25 15:52:05 +03:00
parent f1a35cc9ac
commit e8fe68543e
2 changed files with 2 additions and 2 deletions

View File

@ -49,7 +49,6 @@ stop() ->
application:stop(ejabberd). application:stop(ejabberd).
halt() -> halt() ->
application:stop(sasl),
ejabberd_logger:flush(), ejabberd_logger:flush(),
erlang:halt(1, [{flush, true}]). erlang:halt(1, [{flush, true}]).

View File

@ -242,7 +242,8 @@ get_lager_version() ->
end. end.
flush() -> flush() ->
application:stop(lager). application:stop(lager),
application:stop(sasl).
-else. -else.
-include_lib("kernel/include/logger.hrl"). -include_lib("kernel/include/logger.hrl").