Skip to content

Commit

Permalink
update some logging.
Browse files Browse the repository at this point in the history
Signed-off-by: Naian <[email protected]>
  • Loading branch information
nain-F49FF806 committed Nov 2, 2023
1 parent c534273 commit 335c9c5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 6 additions & 2 deletions agents/rust/mediator/src/aries_agent/client/transports.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use std::collections::VecDeque;

use async_trait::async_trait;
use diddoc_legacy::aries::diddoc::AriesDidDoc;
use log::info;
use log::debug;
use serde_json::Value;

#[derive(thiserror::Error, Debug)]
Expand Down Expand Up @@ -44,6 +44,10 @@ impl AriesTransport for AriesReqwest {
let oob_invited_endpoint = destination
.get_endpoint()
.expect("Service needs an endpoint");
debug!(
"Packed: {:?}, sending",
serde_json::to_string(&envelope_json).unwrap()
);
let res = self
.client
.post(oob_invited_endpoint)
Expand All @@ -57,7 +61,7 @@ impl AriesTransport for AriesReqwest {
.json()
.await
.map_err(AriesTransportError::from_std_error)?;
info!("Received aries response{:?}", res_json);
debug!("Received response envelope {:?}", res_json);
Ok(res_json)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,6 @@ pub async fn send_message_and_pop_response_message(
.await
.map_err(|e| GenericStringError { msg: e.to_string() })?;
let packed_json = serde_json::from_slice(&packed_message)?;
info!(
"Packed: {:?}, sending",
serde_json::to_string(&packed_json).unwrap()
);
// Send serialized envelope over transport
let response_envelope = aries_transport
.send_aries_envelope(packed_json, their_diddoc)
Expand Down

0 comments on commit 335c9c5

Please sign in to comment.