Skip to content

Commit d809317

Browse files
committed
f Make logs more homogeneous
1 parent c7ac2f8 commit d809317

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/io/utils.rs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,8 @@ where
101101
let mut reader =
102102
kv_store.read(NETWORK_GRAPH_PERSISTENCE_NAMESPACE, NETWORK_GRAPH_PERSISTENCE_KEY)?;
103103
NetworkGraph::read(&mut reader, logger.clone()).map_err(|e| {
104-
log_error!(logger, "Failed to deserialize network graph: {}", e);
105-
std::io::Error::new(std::io::ErrorKind::InvalidData, "Failed to deserialize network graph")
104+
log_error!(logger, "Failed to deserialize NetworkGraph: {}", e);
105+
std::io::Error::new(std::io::ErrorKind::InvalidData, "Failed to deserialize NetworkGraph")
106106
})
107107
}
108108

@@ -169,8 +169,11 @@ where
169169
&mut kv_store.read(PAYMENT_INFO_PERSISTENCE_NAMESPACE, &stored_key)?,
170170
)
171171
.map_err(|e| {
172-
log_error!(logger, "Failed to deserialize Payment: {}", e);
173-
std::io::Error::new(std::io::ErrorKind::InvalidData, "Failed to deserialize Payment")
172+
log_error!(logger, "Failed to deserialize PaymentDetails: {}", e);
173+
std::io::Error::new(
174+
std::io::ErrorKind::InvalidData,
175+
"Failed to deserialize PaymentDetails",
176+
)
174177
})?;
175178
res.push(payment);
176179
}

0 commit comments

Comments
 (0)