mirror of
https://github.com/chirpstack/chirpstack.git
synced 2025-04-08 03:44:19 +00:00
Log .send() error, rather than returning.
Closes https://github.com/chirpstack/chirpstack-docker/issues/80.
This commit is contained in:
parent
e93d3bc534
commit
ef0a97ab3d
@ -57,10 +57,15 @@ impl Integration {
|
||||
.query(&[("event", event)])
|
||||
.headers(headers.clone())
|
||||
.send()
|
||||
.await?;
|
||||
.await;
|
||||
|
||||
match res.error_for_status() {
|
||||
Ok(_) => {}
|
||||
match res {
|
||||
Ok(res) => match res.error_for_status() {
|
||||
Ok(_) => {}
|
||||
Err(e) => {
|
||||
error!(event = %event, url = %url, error = %e, "Posting event failed");
|
||||
}
|
||||
},
|
||||
Err(e) => {
|
||||
error!(event = %event, url = %url, error = %e, "Posting event failed");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user