Log compaction request bodies (#8676)
We already log request bodies for normal requests, logging for compaction helps with debugging.
This commit is contained in:
parent
79ce79a62e
commit
7078a0b676
2 changed files with 9 additions and 1 deletions
|
|
@ -69,6 +69,15 @@ impl ReqwestTransport {
|
|||
#[async_trait]
|
||||
impl HttpTransport for ReqwestTransport {
|
||||
async fn execute(&self, req: Request) -> Result<Response, TransportError> {
|
||||
if enabled!(Level::TRACE) {
|
||||
trace!(
|
||||
"{} to {}: {}",
|
||||
req.method,
|
||||
req.url,
|
||||
req.body.as_ref().unwrap_or_default()
|
||||
);
|
||||
}
|
||||
|
||||
let builder = self.build(req)?;
|
||||
let resp = builder.send().await.map_err(Self::map_error)?;
|
||||
let status = resp.status();
|
||||
|
|
|
|||
|
|
@ -416,7 +416,6 @@ impl Serialize for FunctionCallOutputPayload {
|
|||
where
|
||||
S: Serializer,
|
||||
{
|
||||
tracing::debug!("Function call output payload: {:?}", self);
|
||||
if let Some(items) = &self.content_items {
|
||||
items.serialize(serializer)
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue