chore(mqtt-connector): refine logging level

connect failure should be at warning level but not error,
the connecting state is visiable from dashbaord
also the resource manager logs connection failures in general
at warning level
This commit is contained in:
Zaiming (Stone) Shi 2023-05-18 11:54:14 +02:00
parent 5bbcf4b712
commit be90c63c78
1 changed files with 3 additions and 3 deletions

View File

@ -202,13 +202,13 @@ connect(Name) ->
Error
end;
{error, Reason} = Error ->
?SLOG(error, #{
?SLOG(warning, #{
msg => "client_connect_failed",
reason => Reason
reason => Reason,
name => Name
}),
Error
end.
subscribe_remote_topics(Ref, #{remote := #{topic := FromTopic, qos := QoS}}) ->
emqtt:subscribe(ref(Ref), FromTopic, QoS);
subscribe_remote_topics(_Ref, undefined) ->