fix: return error on start hstreamdb crash
This commit is contained in:
parent
262e68f7d2
commit
e0a6a61d73
|
@ -135,13 +135,15 @@ start_client(InstId, Config) ->
|
||||||
do_start_client(InstId, Config)
|
do_start_client(InstId, Config)
|
||||||
catch
|
catch
|
||||||
E:R:S ->
|
E:R:S ->
|
||||||
?SLOG(error, #{
|
Error = #{
|
||||||
msg => "start hstreamdb connector error",
|
msg => "start hstreamdb connector error",
|
||||||
connector => InstId,
|
connector => InstId,
|
||||||
error => E,
|
error => E,
|
||||||
reason => R,
|
reason => R,
|
||||||
stack => S
|
stack => S
|
||||||
})
|
},
|
||||||
|
?SLOG(error, Error),
|
||||||
|
{error, Error}
|
||||||
end.
|
end.
|
||||||
|
|
||||||
do_start_client(InstId, Config = #{url := Server, pool_size := PoolSize}) ->
|
do_start_client(InstId, Config = #{url := Server, pool_size := PoolSize}) ->
|
||||||
|
|
Loading…
Reference in New Issue