Skip to content

Commit

Permalink
Merge pull request #5005 from stacks-network/chore/signer-log-events
Browse files Browse the repository at this point in the history
chore: more info in signer logging events
  • Loading branch information
wileyj authored Jul 25, 2024
2 parents 5acf6c5 + dc56f84 commit 56eec59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libsigner/src/events.rs
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,6 @@ fn process_stackerdb_event<T: SignerEventTrait>(
local_addr: Option<SocketAddr>,
mut request: HttpRequest,
) -> Result<SignerEvent<T>, EventError> {
debug!("Got stackerdb_chunks event");
let mut body = String::new();
if let Err(e) = request.as_reader().read_to_string(&mut body) {
error!("Failed to read body: {:?}", &e);
Expand All @@ -404,6 +403,7 @@ fn process_stackerdb_event<T: SignerEventTrait>(
)));
}

debug!("Got stackerdb_chunks event"; "chunks_event_body" => %body);
let event: StackerDBChunksEvent = serde_json::from_slice(body.as_bytes())
.map_err(|e| EventError::Deserialize(format!("Could not decode body to JSON: {:?}", &e)))?;

Expand Down

0 comments on commit 56eec59

Please sign in to comment.