Change default log level from info to critical when shutdown

This commit is contained in:
Gilbert Wong 2019-03-29 10:56:01 +08:00 committed by Gilbert
parent b6fa4d2a3f
commit 0c64da6da7
1 changed files with 1 additions and 2 deletions

View File

@ -181,7 +181,7 @@ shutdown() ->
shutdown(normal).
shutdown(Reason) ->
?LOG(info, "[EMQ X] emqx shutdown for ~s", [Reason]),
?LOG(critical, "[EMQ X] emqx shutdown for ~s", [Reason]),
emqx_alarm_handler:unload(),
emqx_plugins:unload(),
lists:foreach(fun application:stop/1, [emqx, ekka, cowboy, ranch, esockd, gproc]).
@ -198,4 +198,3 @@ reload_config(ConfFile) ->
lists:foreach(fun({App, Vals}) ->
[application:set_env(App, Par, Val) || {Par, Val} <- Vals]
end, Conf).