Add logging of JSON requests.
This commit is contained in:
parent
9ecfb109b4
commit
f17c98703f
|
@ -52,7 +52,9 @@ async fn echo_request(
|
||||||
warn!("Received a non-JSON body.");
|
warn!("Received a non-JSON body.");
|
||||||
None
|
None
|
||||||
},
|
},
|
||||||
Some(Json(value)) => Some(value),
|
Some(Json(value)) => {
|
||||||
|
info!("JSON request: {}", value.to_string());
|
||||||
|
Some(value)},
|
||||||
};
|
};
|
||||||
let response = EchoResponse {
|
let response = EchoResponse {
|
||||||
method,
|
method,
|
||||||
|
|
Loading…
Reference in New Issue