chore: using standard log format
This commit is contained in:
parent
f8c90452cc
commit
a78a389206
|
@ -1,7 +1,7 @@
|
||||||
%% -*- mode: erlang -*-
|
%% -*- mode: erlang -*-
|
||||||
{application, emqx_resource, [
|
{application, emqx_resource, [
|
||||||
{description, "An OTP application"},
|
{description, "Manager for all external resources"},
|
||||||
{vsn, "0.1.0"},
|
{vsn, "0.1.1"},
|
||||||
{registered, []},
|
{registered, []},
|
||||||
{mod, {emqx_resource_app, []}},
|
{mod, {emqx_resource_app, []}},
|
||||||
{applications, [
|
{applications, [
|
||||||
|
|
|
@ -0,0 +1,7 @@
|
||||||
|
%% -*- mode: erlang -*-
|
||||||
|
%% Unless you know what you are doing, DO NOT edit manually!!
|
||||||
|
{VSN,
|
||||||
|
[{"0.1.0",[{load_module,emqx_resource_manager,brutal_purge,soft_purge,[]}]}
|
||||||
|
],
|
||||||
|
[{"0.1.0",[{load_module,emqx_resource_manager,brutal_purge,soft_purge,[]}]}
|
||||||
|
]}.
|
|
@ -484,7 +484,11 @@ handle_connected_health_check(Data) ->
|
||||||
Actions = [{state_timeout, ?HEALTHCHECK_INTERVAL, health_check}],
|
Actions = [{state_timeout, ?HEALTHCHECK_INTERVAL, health_check}],
|
||||||
{keep_state, UpdatedData, Actions};
|
{keep_state, UpdatedData, Actions};
|
||||||
(Status, UpdatedData) ->
|
(Status, UpdatedData) ->
|
||||||
logger:error("health check for ~p failed: ~p", [Data#data.id, Status]),
|
?SLOG(error, #{
|
||||||
|
msg => health_check_failed,
|
||||||
|
id => Data#data.id,
|
||||||
|
status => Status
|
||||||
|
}),
|
||||||
{next_state, Status, UpdatedData}
|
{next_state, Status, UpdatedData}
|
||||||
end
|
end
|
||||||
).
|
).
|
||||||
|
|
Loading…
Reference in New Issue