Change default log level from info to critical when shutdown
This commit is contained in:
parent
b6fa4d2a3f
commit
0c64da6da7
|
@ -181,7 +181,7 @@ shutdown() ->
|
||||||
shutdown(normal).
|
shutdown(normal).
|
||||||
|
|
||||||
shutdown(Reason) ->
|
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_alarm_handler:unload(),
|
||||||
emqx_plugins:unload(),
|
emqx_plugins:unload(),
|
||||||
lists:foreach(fun application:stop/1, [emqx, ekka, cowboy, ranch, esockd, gproc]).
|
lists:foreach(fun application:stop/1, [emqx, ekka, cowboy, ranch, esockd, gproc]).
|
||||||
|
@ -198,4 +198,3 @@ reload_config(ConfFile) ->
|
||||||
lists:foreach(fun({App, Vals}) ->
|
lists:foreach(fun({App, Vals}) ->
|
||||||
[application:set_env(App, Par, Val) || {Par, Val} <- Vals]
|
[application:set_env(App, Par, Val) || {Par, Val} <- Vals]
|
||||||
end, Conf).
|
end, Conf).
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue