Skip to content

Commit

Permalink
Tweak logs
Browse files Browse the repository at this point in the history
Signed-off-by: Patrik Stas <[email protected]>
  • Loading branch information
Patrik-Stas committed Mar 8, 2024
1 parent 281d7d9 commit 4e99c35
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions aries/aries_vcx/src/protocols/did_exchange/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,18 @@ pub async fn resolve_enc_key_from_invitation(
format!("DID resolution failed: {err}"),
)
})?;
info!("DID resolution output {:?}", output);
info!(
"resolve_enc_key_from_invitation >> Resolved did document {}",
output.did_document
);
Ok(output
.did_document
.verification_method()
.first()
.ok_or_else(|| {
AriesVcxError::from_msg(
AriesVcxErrorKind::InvalidState,
"No verification method found in resolved did document",
format!("No verification method found in resolved did document {}", &output.did_document),
)
})?
.public_key()?)
Expand Down

0 comments on commit 4e99c35

Please sign in to comment.