We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a5a9f6 commit 869ea6dCopy full SHA for 869ea6d
proxy-http-client/src/poster.rs
@@ -29,6 +29,18 @@ impl HttpBroadcast for Poster {
29
.body(event)
30
.send()
31
.await;
32
- result.is_ok()
+ if result.is_ok() {
33
+ let result = result.unwrap();
34
+ let status = result.status().as_u16();
35
+ match result.bytes().await {
36
+ Ok(bytes) => tracing::debug!("{:?}", bytes),
37
+ Err(err) => tracing::debug!("ERROR: {}", err.to_string()),
38
+ }
39
+ status < 400
40
+ } else {
41
+ let result = result.unwrap_err();
42
+ tracing::error!("response is error {}", result.to_string());
43
+ false
44
45
}
46
0 commit comments