event-graph/proto: Add debug message before possible code panic

This commit is contained in:
parazyd
2023-11-10 13:03:10 +01:00
parent 55471d15e9
commit 8aed095da0

View File

@@ -347,6 +347,10 @@ impl ProtocolEventGraph {
// At this point we should have it in our DAG.
// This code panics if this is not the case.
debug!(
target: "event_graph::protocol::handle_event_req()",
"Fetching event {} from DAG", event_id,
);
let event = self.event_graph.dag.get(event_id.as_bytes()).unwrap().unwrap();
let event: Event = deserialize_async(&event).await.unwrap();