fix: do not let plugin start failed lead emqx start failed
This commit is contained in:
parent
e0e4517d9e
commit
df7dcb2764
|
@ -1013,8 +1013,11 @@ configured() ->
|
||||||
|
|
||||||
for_plugins(ActionFun) ->
|
for_plugins(ActionFun) ->
|
||||||
case lists:flatmap(fun(I) -> for_plugin(I, ActionFun) end, configured()) of
|
case lists:flatmap(fun(I) -> for_plugin(I, ActionFun) end, configured()) of
|
||||||
[] -> ok;
|
[] ->
|
||||||
Errors -> erlang:error(#{function => ActionFun, errors => Errors})
|
ok;
|
||||||
|
Errors ->
|
||||||
|
?SLOG(error, #{function => ActionFun, errors => Errors}),
|
||||||
|
ok
|
||||||
end.
|
end.
|
||||||
|
|
||||||
for_plugin(#{name_vsn := NameVsn, enable := true}, Fun) ->
|
for_plugin(#{name_vsn := NameVsn, enable := true}, Fun) ->
|
||||||
|
|
Loading…
Reference in New Issue