From 1b45d6d41235de496ad2cf3405ca393a28c445e8 Mon Sep 17 00:00:00 2001 From: lli Date: Tue, 6 Aug 2024 18:18:54 -0700 Subject: [PATCH] Log response error Signed-off-by: lli --- .../did_methods/did_resolver_sov/src/resolution/utils.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/did_core/did_methods/did_resolver_sov/src/resolution/utils.rs b/did_core/did_methods/did_resolver_sov/src/resolution/utils.rs index 70fd4641ef..65de49d405 100644 --- a/did_core/did_methods/did_resolver_sov/src/resolution/utils.rs +++ b/did_core/did_methods/did_resolver_sov/src/resolution/utils.rs @@ -93,7 +93,10 @@ pub(super) async fn ledger_response_to_ddo( let service_data = match get_data_from_response(resp) { Ok(data) => data, - Err(_) => serde_json::Value::Null, + Err(e) => { + log::warn!("Failed to get service data: {}", e); + serde_json::Value::Null + } }; let mut ddo = DidDocument::new(ddo_id.clone());