How to print more log? #563
-
pub async fn list_dataset(Json(req): Json<ListDatasetRequest>) -> Result<Json<ListDatasetResponse>, StatusCode> I have written a handler, and I run the server on my Macbook. It works. However, when I compose it with nginx, it doesn't work. How to print more log? I want to know what request body is before deserializing.
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
Try this https://github.com/tokio-rs/axum/blob/main/examples/print-request-response/src/main.rs |
Beta Was this translation helpful? Give feedback.
-
@davidpdrsn do you think axum could expose or expose directly an axum function, something like |
Beta Was this translation helpful? Give feedback.
Try this https://github.com/tokio-rs/axum/blob/main/examples/print-request-response/src/main.rs