fix: reduce log level from error to warning in several places
This reduces the log level from error to warning in places that are connected to the influxdb bridge. Transient errors for external resources should not render an error log.
This commit is contained in:
parent
8836494542
commit
805d08e823
|
@ -487,7 +487,7 @@ start_resource(Data, From) ->
|
|||
Actions = maybe_reply([{state_timeout, 0, health_check}], From, ok),
|
||||
{next_state, connecting, UpdatedData, Actions};
|
||||
{error, Reason} = Err ->
|
||||
?SLOG(error, #{
|
||||
?SLOG(warning, #{
|
||||
msg => start_resource_failed,
|
||||
id => Data#data.id,
|
||||
reason => Reason
|
||||
|
@ -546,7 +546,7 @@ handle_connected_health_check(Data) ->
|
|||
Actions = [{state_timeout, health_check_interval(Data#data.opts), health_check}],
|
||||
{keep_state, UpdatedData, Actions};
|
||||
(Status, UpdatedData) ->
|
||||
?SLOG(error, #{
|
||||
?SLOG(warning, #{
|
||||
msg => health_check_failed,
|
||||
id => Data#data.id,
|
||||
status => Status
|
||||
|
|
|
@ -208,7 +208,7 @@ start_client(InstId, Config) ->
|
|||
catch
|
||||
E:R:S ->
|
||||
?tp(influxdb_connector_start_exception, #{error => {E, R}}),
|
||||
?SLOG(error, #{
|
||||
?SLOG(warning, #{
|
||||
msg => "start influxdb connector error",
|
||||
connector => InstId,
|
||||
error => E,
|
||||
|
@ -242,7 +242,7 @@ do_start_client(
|
|||
{ok, State};
|
||||
false ->
|
||||
?tp(influxdb_connector_start_failed, #{error => influxdb_client_not_alive}),
|
||||
?SLOG(error, #{
|
||||
?SLOG(warning, #{
|
||||
msg => "starting influxdb connector failed",
|
||||
connector => InstId,
|
||||
client => redact_auth(Client),
|
||||
|
@ -261,7 +261,7 @@ do_start_client(
|
|||
do_start_client(InstId, ClientConfig, Config);
|
||||
{error, Reason} ->
|
||||
?tp(influxdb_connector_start_failed, #{error => Reason}),
|
||||
?SLOG(error, #{
|
||||
?SLOG(warning, #{
|
||||
msg => "starting influxdb connector failed",
|
||||
connector => InstId,
|
||||
reason => Reason
|
||||
|
|
Loading…
Reference in New Issue