Skip to content

Commit

Permalink
chore: log the body bytes of rag query request
Browse files Browse the repository at this point in the history
Signed-off-by: Xin Liu <[email protected]>
  • Loading branch information
apepkuss committed Jun 13, 2024
1 parent 5a7ffc3 commit ed8e454
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/backend/ggml.rs
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,9 @@ pub(crate) async fn rag_query_handler(mut req: Request<Body>) -> Response<Body>
// log
error!(target: "rag_query_handler", "{}", &err_msg);

// log body_bytes
error!(target: "rag_query_handler", "raw data:\n{:?}", &body_bytes.to_ascii_lowercase());

return error::bad_request(err_msg);
}
};
Expand Down

0 comments on commit ed8e454

Please sign in to comment.